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-06 12:58:18 +08:00
committed by Damyon Wiese
parent dbc251e25c
commit a2afdf4691
+4 -2
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();
});
});
}
});
};