Permalink
Browse files

MDL-34800 core_grade:switched from hiding the submit button to disabl…

…ing it if ajax is enabled
  • Loading branch information...
1 parent 1918a24 commit 60daf98c9619eece705d3c61c3ca9c21e1473e2a @andyjdavis andyjdavis committed Feb 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 grade/report/grader/module.js
@@ -323,9 +323,9 @@ M.gradereport_grader.classes.ajax = function(report, cfg) {
this.existingfields[userid][itemid] = new M.gradereport_grader.classes.existingfield(this, userid, itemid);
}
}
- // Hide the Update button
+ // Disable the Update button as we're saving using ajax.
submitbutton = this.report.Y.one('#gradersubmit');
- submitbutton.setStyle('visibility', 'hidden');
+ submitbutton.set('disabled', true);
}
};
/**

0 comments on commit 60daf98

Please sign in to comment.