echo "<tr>\n<td colspan=\"4\" style=\"text-align:center\">\n";
echo "<br />";
echo "<input type=\"button\" onclick=\"checkall()\" value=\"$strselectall\" />\n";
- echo "<input type=\"button\" onclick=\"uncheckall()\" value=\"$strdeselectall\" />\n";
+ echo "<input type=\"button\" onclick=\"checknone()\" value=\"$strdeselectall\" />\n";
choose_from_menu ($displaylist, "moveto", "", get_string("moveselectedcoursesto"), "javascript: getElementById('movecourses').submit()");
echo "</td>\n</tr>\n";
echo "</table>\n</form>";
function popupchecker(msg) {
var testwindow = window.open('itestwin.html', '', 'width=1,height=1,left=0,top=0,scrollbars=no');
- if (testwindow == null)
- {alert(msg);}
- else {
+ if (!testwindow) {
+ alert(msg);
+ } else {
testwindow.close();
}
}
}
}
-function uncheckall() {
- void(d=document);
- void(el=d.getElementsByTagName('INPUT'));
- for(i=0;i<el.length;i++) {
- void(el[i].checked=0);
- }
-}
-
-function checkall() {
- void(d=document);
- void(el=d.getElementsByTagName('INPUT'));
- for(i=0;i<el.length;i++) {
- void(el[i].checked=1);
- }
-}
-
function getElementsByClassName(oElm, strTagName, oClassNames){
var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
var arrReturnElements = new Array();