]> git.mjollnir.org Git - moodle.git/commitdiff
Yes the, new, more efficient, variant of the select all checkboxes function.
authortjhunt <tjhunt>
Fri, 12 Jun 2009 12:07:35 +0000 (12:07 +0000)
committertjhunt <tjhunt>
Fri, 12 Jun 2009 12:07:35 +0000 (12:07 +0000)
question/qbank.js

index 14907e91f9ae96aeabbe867157b0697c428d9a00..a51c8130b7a66cc5510abccbdb3e3d20cc28ff80 100644 (file)
@@ -25,10 +25,10 @@ question_bank = {
 
     header_checkbox_click: function() {
         if (question_bank.firstcheckbox.checked) {
-            deselect_all_in('TABLE', null, 'categoryquestions');
+            select_all_in_element_with_id('categoryquestions', '');
             question_bank.headercheckbox.title = question_bank.strselectall;
         } else {
-            select_all_in('TABLE', null, 'categoryquestions');
+            select_all_in_element_with_id('categoryquestions', 'checked');
             question_bank.headercheckbox.title = question_bank.strdeselectall;
         }
         question_bank.headercheckbox.checked = false;