[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 01 Dec 2005 19:00:46 -0000
albertel Thu Dec 1 14:00:46 2005 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- print button on Edit and EditXML screens works in remoteless mode
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.163 loncom/interface/lonmenu.pm:1.164
--- loncom/interface/lonmenu.pm:1.163 Tue Nov 8 12:57:41 2005
+++ loncom/interface/lonmenu.pm Thu Dec 1 14:00:46 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.163 2005/11/08 17:57:41 www Exp $
+# $Id: lonmenu.pm,v 1.164 2005/12/01 19:00:46 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1108,15 +1108,20 @@
this.document.cstrprint.curseed.value = this.document.lonhomework.rndseed.value
}
if (this.document.lonhomework.problemtype) {
- for (var i=0; i<this.document.lonhomework.problemtype.options.length; i++) {
- if (this.document.lonhomework.problemtype.options[i].selected) {
- if (this.document.lonhomework.problemtype.options[i].value != null && this.document.lonhomework.problemtype.options[i].value != '') {
- this.document.cstrprint.problemtype.value = this.document.lonhomework.problemtype.options[i].value
- }
- }
- }
- }
- }
+ if (this.document.lonhomework.problemtype.value) {
+ this.document.cstrprint.problemtype.value =
+ this.document.lonhomework.problemtype.value;
+ } else if (this.document.lonhomework.problemtype.options) {
+ for (var i=0; i<this.document.lonhomework.problemtype.options.length; i++) {
+ if (this.document.lonhomework.problemtype.options[i].selected) {
+ if (this.document.lonhomework.problemtype.options[i].value != null && this.document.lonhomework.problemtype.options[i].value != '') {
+ this.document.cstrprint.problemtype.value = this.document.lonhomework.problemtype.options[i].value
+ }
+ }
+ }
+ }
+ }
+ }
this.document.cstrprint.submit();
return;
}