From 51096dc7c79b6020dec8ff4ae7ae44ae327f5ad9 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 26 Aug 2015 13:20:50 -0700 Subject: [PATCH] add disabled class to button on press --- public/js/lib/coursewares/commonFrameWork_0.0.6.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/lib/coursewares/commonFrameWork_0.0.6.js b/public/js/lib/coursewares/commonFrameWork_0.0.6.js index 00dccccadd..2aad14d097 100644 --- a/public/js/lib/coursewares/commonFrameWork_0.0.6.js +++ b/public/js/lib/coursewares/commonFrameWork_0.0.6.js @@ -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/', {