MDL-43199 assign: fix js error when expanding comments for non editing teachers in assign grading table
This commit is contained in:
committed by
Damyon Wiese
parent
dbc251e25c
commit
a2afdf4691
@@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user