add disabled class to button on press

pull/2770/head
Berkeley Martinez 2015-08-26 13:20:50 -07:00
parent cbc8ac0758
commit 51096dc7c7
1 changed files with 5 additions and 1 deletions

View File

@ -296,7 +296,11 @@ function showCompletion() {
var didCompleteWith = $('#completed-with').val() || null;
$('#complete-courseware-dialog').modal('show');
$('#submit-challenge').click(function(e) {
$('#submit-challenge').attr('disabled', 'true');
$('#submit-challenge')
.attr('disabled', 'true')
.addClass('disabled');
e.preventDefault();
$.post(
'/completed-bonfire/', {