Skip to content

Commit

Permalink
1915: disable set ungraded form upon confirmation to avoid double sub…
Browse files Browse the repository at this point in the history
…mits when it takes a few moments (sakaiproject#2859)
  • Loading branch information
payten authored and steveswinsburg committed Jun 18, 2016
1 parent 540af81 commit 03ea465
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ GradebookUpdateUngraded.prototype.setupConfirmation = function(){
function showConfirmation() {
var $confirmationModal = buildConfirmationModal();

$confirmationModal.on("click", ".gb-update-ungraded-continue", function() {
$confirmationModal.one("click", ".gb-update-ungraded-continue", function() {
performRealSubmit();
});
$(document.body).append($confirmationModal);
Expand All @@ -58,6 +58,7 @@ GradebookUpdateUngraded.prototype.setupConfirmation = function(){

function performRealSubmit() {
self.$content.find(".gb-update-ungraded-real-submit").trigger("click");
self.$content.find(":input").prop("disabled", true);
};


Expand Down

0 comments on commit 03ea465

Please sign in to comment.