[LON-CAPA-cvs] cvs: loncom /interface loncourserespicker.pm
raeburn
raeburn at source.lon-capa.org
Thu Apr 9 13:57:06 EDT 2015
raeburn Thu Apr 9 17:57:06 2015 EDT
Modified files:
/loncom/interface loncourserespicker.pm
Log:
- Eliminate javascript error when selecting resources in nested sub-folders.
Index: loncom/interface/loncourserespicker.pm
diff -u loncom/interface/loncourserespicker.pm:1.11 loncom/interface/loncourserespicker.pm:1.12
--- loncom/interface/loncourserespicker.pm:1.11 Wed Jan 8 17:18:11 2014
+++ loncom/interface/loncourserespicker.pm Thu Apr 9 17:57:05 2015
@@ -1,6 +1,6 @@
# The LearningOnline Network
#
-# $Id: loncourserespicker.pm,v 1.11 2014/01/08 17:18:11 bisitz Exp $
+# $Id: loncourserespicker.pm,v 1.12 2015/04/09 17:57:05 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -693,10 +693,12 @@
}
}
if (isResource == 1) {
- if (nesting[elemnum].length > 0) {
- var lastelem = nesting[elemnum].length-1;
- if (document.$formname.elements[nesting[elemnum][lastelem]].checked) {
- include = 0;
+ if (nesting[elemnum] != null) {
+ if (nesting[elemnum].length > 0) {
+ var lastelem = nesting[elemnum].length-1;
+ if (document.$formname.elements[nesting[elemnum][lastelem]].checked) {
+ include = 0;
+ }
}
}
}
More information about the LON-CAPA-cvs
mailing list