diff --git a/lms/static/js/verify_student/views/webcam_photo_view.js b/lms/static/js/verify_student/views/webcam_photo_view.js index 0926836c5c..c527da61a7 100644 --- a/lms/static/js/verify_student/views/webcam_photo_view.js +++ b/lms/static/js/verify_student/views/webcam_photo_view.js @@ -241,7 +241,6 @@ // Install event handlers $( "#webcam_reset_button", this.el ).on( 'click', _.bind( this.reset, this ) ); $( "#webcam_capture_button", this.el ).on( 'click', _.bind( this.capture, this ) ); - $( "#webcam_approve_button", this.el ).on( 'click', _.bind( this.approve, this ) ); return this; }, @@ -255,7 +254,6 @@ // Go back to the initial button state $( "#webcam_reset_button", this.el ).hide(); - $( "#webcam_approve_button", this.el ).removeClass( "approved" ).hide(); $( "#webcam_capture_button", this.el ).show(); }, @@ -263,25 +261,19 @@ // Take a snapshot of the video var success = this.backend.snapshot(); - // Show the reset and approve buttons if ( success ) { + // Hide the capture button, and show the reset button $( "#webcam_capture_button", this.el ).hide(); $( "#webcam_reset_button", this.el ).show(); - $( "#webcam_approve_button", this.el ).show(); + + // Save the data to the model + this.model.set( this.modelAttribute, this.backend.getImageData() ); + + // Enable the submit button + $( this.submitButton ).removeClass( "is-disabled" ); } }, - approve: function() { - // Save the data to the model - this.model.set( this.modelAttribute, this.backend.getImageData() ); - - // Make the "approve" button green - $( "#webcam_approve_button" ).addClass( "approved" ); - - // Enable the submit button - $( this.submitButton ).removeClass( "is-disabled" ); - }, - chooseVideoCaptureBackend: function() { var i, backendName, backend; @@ -298,7 +290,6 @@ // Hide the buttons $( "#webcam_capture_button", this.el ).hide(); $( "#webcam_reset_button", this.el ).hide(); - $( "#webcam_approve_button", this.el ).hide(); // Show the error message this.errorModel.set({ diff --git a/lms/static/sass/views/_verification.scss b/lms/static/sass/views/_verification.scss index b900784744..1b56b5b803 100644 --- a/lms/static/sass/views/_verification.scss +++ b/lms/static/sass/views/_verification.scss @@ -732,8 +732,8 @@ left: ($baseline/2); } - // control - take/do - .control-do { + // control - take/do, retake + .control-do, .control-retake { left: 45%; } @@ -2183,8 +2183,8 @@ left: ($baseline/2); } - // control - take/do - .control-do { + // control - take/do, retake + .control-do, .control-retake { left: 45%; } diff --git a/lms/templates/verify_student/face_photo_step.underscore b/lms/templates/verify_student/face_photo_step.underscore index 4992b5dad6..bcdcc22b4f 100644 --- a/lms/templates/verify_student/face_photo_step.underscore +++ b/lms/templates/verify_student/face_photo_step.underscore @@ -18,7 +18,6 @@