From cbc8ac07585eb4ae6b75448cc50d78aa9ffa771f Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 26 Aug 2015 13:17:05 -0700 Subject: [PATCH] fix disable button after click --- public/js/lib/coursewares/commonFrameWork_0.0.6.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/lib/coursewares/commonFrameWork_0.0.6.js b/public/js/lib/coursewares/commonFrameWork_0.0.6.js index 7bc8b75d66..00dccccadd 100644 --- a/public/js/lib/coursewares/commonFrameWork_0.0.6.js +++ b/public/js/lib/coursewares/commonFrameWork_0.0.6.js @@ -296,6 +296,7 @@ function showCompletion() { var didCompleteWith = $('#completed-with').val() || null; $('#complete-courseware-dialog').modal('show'); $('#submit-challenge').click(function(e) { + $('#submit-challenge').attr('disabled', 'true'); e.preventDefault(); $.post( '/completed-bonfire/', {