add disabled class to button on press
parent
cbc8ac0758
commit
51096dc7c7
|
@ -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/', {
|
||||
|
|
Loading…
Reference in New Issue