From 22480b821adfa45cf8e7e8cc9a757428564b1b58 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Thu, 5 Sep 2013 14:15:13 -0400 Subject: [PATCH] Fix reset button for photo capture --- lms/static/js/verify_student/photocapture.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lms/static/js/verify_student/photocapture.js b/lms/static/js/verify_student/photocapture.js index 94fdb5f570..0566d97880 100644 --- a/lms/static/js/verify_student/photocapture.js +++ b/lms/static/js/verify_student/photocapture.js @@ -47,7 +47,7 @@ var submitToPaymentProcessing = function() { }); } -function doResetButton(resetButton, captureButton, approveButton) { +function doResetButton(resetButton, captureButton, approveButton, nextButton) { approveButton.removeClass('approved'); nextButton.addClass('disabled'); @@ -117,7 +117,7 @@ function initSnapshotHandler(names, hasHtml5CameraSupport) { flashCapture[0].reset(); } - doResetButton(resetButton, captureButton, approveButton); + doResetButton(resetButton, captureButton, approveButton, nextButton); return false; } @@ -176,14 +176,14 @@ $(document).ready(function() { $("#pay_button").toggleClass('disabled'); }); - + // add in handlers to add/remove the correct classes to the body // when moving between steps - $('#face_next_button').click(function(){ + $('#face_next_button').click(function(){ $('body').addClass('step-photos-id').removeClass('step-photos-cam') }) - $('#photo_id_next_button').click(function(){ + $('#photo_id_next_button').click(function(){ $('body').addClass('step-review').removeClass('step-photos-id') })