mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-44669: mod/assign: fix batchoperations JS when using select all checkboxes.
This commit is contained in:
parent
9ea57c8bc3
commit
754e2efd0f
@ -45,7 +45,7 @@ M.mod_assign.init_grading_table = function(Y) {
|
||||
if (selectall) {
|
||||
selectall.on('change', function(e) {
|
||||
if (e.currentTarget.get('checked')) {
|
||||
checkboxes = Y.all('td.c0 input');
|
||||
checkboxes = Y.all('td.c0 input[type="checkbox"]');
|
||||
checkboxes.each(function(node) {
|
||||
rowelement = node.get('parentNode').get('parentNode');
|
||||
node.set('checked', true);
|
||||
@ -53,7 +53,7 @@ M.mod_assign.init_grading_table = function(Y) {
|
||||
rowelement.addClass('selectedrow');
|
||||
});
|
||||
} else {
|
||||
checkboxes = Y.all('td.c0 input');
|
||||
checkboxes = Y.all('td.c0 input[type="checkbox"]');
|
||||
checkboxes.each(function(node) {
|
||||
rowelement = node.get('parentNode').get('parentNode');
|
||||
node.set('checked', false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user