mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-33475: Fix javascript error when advanced grading is used in mod_assign
This commit is contained in:
parent
4a5be0e949
commit
eba009ea63
@ -140,9 +140,11 @@ M.mod_assign.init_grading_options = function(Y) {
|
||||
Y.one('form.gradingoptionsform').submit();
|
||||
});
|
||||
var quickgradingelement = Y.one('#id_quickgrading');
|
||||
quickgradingelement.on('change', function(e) {
|
||||
Y.one('form.gradingoptionsform').submit();
|
||||
});
|
||||
if (quickgradingelement) {
|
||||
quickgradingelement.on('change', function(e) {
|
||||
Y.one('form.gradingoptionsform').submit();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user