Skip to content

Commit

Permalink
Merge pull request #1987 from projectblacklight/6.x-do-not-update-che…
Browse files Browse the repository at this point in the history
…ckbox

BACKPORT: do not update checkbox state if the request fails
  • Loading branch information
mjgiarlo committed Oct 16, 2018
2 parents a7f4dfd + 2e789a6 commit 7110201
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/assets/javascripts/blacklight/checkbox_submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
data: form.serialize(),
error: function() {
alert("Error");
update_state_for(checked);
label.removeAttr("disabled");
checkbox.removeAttr("disabled");
},
Expand All @@ -112,7 +111,6 @@
options.success.call(form, checked, xhr.responseJSON);
} else {
alert("Error");
update_state_for(checked);
label.removeAttr("disabled");
checkbox.removeAttr("disabled");
}
Expand Down

0 comments on commit 7110201

Please sign in to comment.