Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ing it if ajax is enabled
  • Loading branch information...
commit 60daf98c9619eece705d3c61c3ca9c21e1473e2a 1 parent 1918a24
@andyjdavis andyjdavis authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 grade/report/grader/module.js
View
4 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);
}
};
/**
Please sign in to comment.
Something went wrong with that request. Please try again.