fix disable button after click
This commit is contained in:
@ -296,6 +296,7 @@ function showCompletion() {
|
|||||||
var didCompleteWith = $('#completed-with').val() || null;
|
var didCompleteWith = $('#completed-with').val() || null;
|
||||||
$('#complete-courseware-dialog').modal('show');
|
$('#complete-courseware-dialog').modal('show');
|
||||||
$('#submit-challenge').click(function(e) {
|
$('#submit-challenge').click(function(e) {
|
||||||
|
$('#submit-challenge').attr('disabled', 'true');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$.post(
|
$.post(
|
||||||
'/completed-bonfire/', {
|
'/completed-bonfire/', {
|
||||||
|
Reference in New Issue
Block a user