Skip to content

Commit

Permalink
MDL-60002 assign: Fixed validation on save and save and show next.
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Oct 13, 2017
1 parent f088e26 commit 41be91c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod/assign/amd/build/grading_panel.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mod/assign/amd/src/grading_panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ define(['jquery', 'core/yui', 'core/notification', 'core/templates', 'core/fragm
ajax.call([{
methodname: 'mod_assign_submit_grading_form',
args: {assignmentid: assignmentid, userid: this._lastUserId, jsonformdata: JSON.stringify(data)},
done: this._handleFormSubmissionResponse.bind(this, data, nextUserId, [], nextUser),
done: this._handleFormSubmissionResponse.bind(this, data, nextUserId, nextUser),
fail: notification.exception
}]);
};
Expand All @@ -134,7 +134,7 @@ define(['jquery', 'core/yui', 'core/notification', 'core/templates', 'core/fragm
* @param {Array} response List of errors.
* @param {Boolean} nextUser - optional. If true, switch to next user in the grading list.
*/
GradingPanel.prototype._handleFormSubmissionResponse = function(formdata, nextUserId, response, nextUser) {
GradingPanel.prototype._handleFormSubmissionResponse = function(formdata, nextUserId, nextUser, response) {
if (typeof nextUserId === "undefined") {
nextUserId = this._lastUserId;
}
Expand Down

0 comments on commit 41be91c

Please sign in to comment.