Skip to content

Commit

Permalink
Moved button loading state to doStuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
joelstein committed Dec 14, 2012
1 parent 9c00885 commit 6881e5f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ function modalForm(data, url) {
}).appendTo($form);
});

// Delegated click handler on all modal footer buttons (see above).
$form.on('click', '.modal-footer .btn', function() {
// Add loading state text to the buttons.
$(this).button('loading');
});

// When submitting the form, send it via Ajax, hide the current modal, and
// replace it with a new modal form.
$form.submit(function() {
Expand Down

0 comments on commit 6881e5f

Please sign in to comment.