Skip to content

Commit

Permalink
MDL-43199 assign: fix js error when expanding comments for non editin…
Browse files Browse the repository at this point in the history
…g teachers in assign grading table
  • Loading branch information
pavelsokolov authored and Damyon Wiese committed Dec 6, 2013
1 parent c36a240 commit a665553
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod/assign/module.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ M.mod_assign.init_grading_options = function(Y) {
}); });
} }
var showonlyactiveenrolelement = Y.one('#id_showonlyactiveenrol'); var showonlyactiveenrolelement = Y.one('#id_showonlyactiveenrol');
showonlyactiveenrolelement.on('change', function(e) { if (showonlyactiveenrolelement) {
showonlyactiveenrolelement.on('change', function(e) {
Y.one('form.gradingoptionsform').submit(); Y.one('form.gradingoptionsform').submit();
}); });
}
}); });
}; };


Expand Down

0 comments on commit a665553

Please sign in to comment.