MDL-43199 assign: fix js error when expanding comments for non editing teachers in assign grading table

This commit is contained in:
Pavel Sokolov 2013-12-05 11:56:14 +04:00 committed by Damyon Wiese
parent c36a2401ab
commit a66555328b

View File

@ -150,9 +150,11 @@ M.mod_assign.init_grading_options = function(Y) {
});
}
var showonlyactiveenrolelement = Y.one('#id_showonlyactiveenrol');
showonlyactiveenrolelement.on('change', function(e) {
if (showonlyactiveenrolelement) {
showonlyactiveenrolelement.on('change', function(e) {
Y.one('form.gradingoptionsform').submit();
});
});
}
});
};