Permalink
Browse files

MDL-43199 assign: fix js error when expanding comments for non editin…

…g teachers in assign grading table
  • Loading branch information...
1 parent c36a240 commit a66555328b49c2f0dbe0976d738ead18c7ed86b4 @pavelsokolov pavelsokolov committed with damyon Dec 5, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/assign/module.js
@@ -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();
- });
+ });
+ }
});
};

0 comments on commit a665553

Please sign in to comment.