[LON-CAPA-cvs] cvs: loncom /interface lonhelper.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Thu, 09 Oct 2003 18:24:32 -0000
sakharuk Thu Oct 9 14:24:32 2003 EDT
Modified files:
/loncom/interface lonhelper.pm
Log:
Last update to imlement unselection of student's group.
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.57 loncom/interface/lonhelper.pm:1.58
--- loncom/interface/lonhelper.pm:1.57 Thu Oct 9 12:27:26 2003
+++ loncom/interface/lonhelper.pm Thu Oct 9 14:24:32 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# .helper XML handler to implement the LON-CAPA helper
#
-# $Id: lonhelper.pm,v 1.57 2003/10/09 16:27:26 albertel Exp $
+# $Id: lonhelper.pm,v 1.58 2003/10/09 18:24:32 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2081,11 +2081,11 @@
}
}
}
- function checksec() {
+ function checksec(value) {
for (i=0; i<document.forms.helpform.elements.length; i++) {
comp = document.forms.helpform.elements.chksec.value;
if (document.forms.helpform.elements[i].value.indexOf(':'+comp+':') != -1) {
- document.forms.helpform.elements[i].checked=true;
+ document.forms.helpform.elements[i].checked=value;
}
}
}
@@ -2103,8 +2103,9 @@
<input type="button" onclick="checkactive()" value="Select Only Current Students" />
<input type="button" onclick="checkall(true, '$var')" value="Select All Students" />
<input type="button" onclick="checkall(false, '$var')" value="Unselect All Students" />
-<input type="button" onclick="checksec()" value="Check for Section/Group">
+<input type="button" onclick="checksec(true)" value="Select for Section/Group">
<input type="text" size="5" name="chksec">
+<input type="button" onclick="checksec(false)" value="Unselect for Section/Group">
<br />
BUTTONS
}