Skip to content

Commit

Permalink
Merge pull request #2 from askaza/master
Browse files Browse the repository at this point in the history
Disable ajax.update button only if it's not a confirm.
  • Loading branch information
scabbiaza committed Jul 16, 2015
2 parents ae9304e + 546d018 commit 6c04e04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ $(function () {
var confirm = $button.attr('data-confirm');

//To prevent multisending
$button.prop('disabled', true);
if (!confirm) {
$button.prop('disabled', true);
}

function handle() {
if (csrftoken) {
Expand Down

0 comments on commit 6c04e04

Please sign in to comment.