diff --git a/lms/djangoapps/verify_student/views.py b/lms/djangoapps/verify_student/views.py index f442e2ea14..5ee24893d8 100644 --- a/lms/djangoapps/verify_student/views.py +++ b/lms/djangoapps/verify_student/views.py @@ -78,6 +78,7 @@ def create_order(request): return HttpResponseBadRequest(_("Selected price is not valid number.")) verified_mode = CourseMode.modes_for_course_dict(course_id).get('verified', None) + # make sure this course has a verified mode if not verified_mode: return HttpResponseBadRequest(_("This course doesn't support verified certificates")) diff --git a/lms/templates/verify_student/photo_verification.html b/lms/templates/verify_student/photo_verification.html index d7a001f3d9..dcf5e10525 100644 --- a/lms/templates/verify_student/photo_verification.html +++ b/lms/templates/verify_student/photo_verification.html @@ -53,7 +53,9 @@ .done(function(data) { $("#pay_form").submit(); }) - .fail(function(jqXhr,text_status, error_thrown) { alert(jqXhr.responseText); }); + .fail(function(jqXhr,text_status, error_thrown) { + alert(jqXhr.responseText); + }); } function initSnapshotHandler(names) { @@ -136,16 +138,16 @@ $(document).ready(function() { $(".carousel-nav").addClass('sr'); $("#pay_button").click(submitToPaymentProcessing); - $("#confirm_pics_good").click(function() { - if (this.checked) { - $("#pay_button_frame").removeClass('disabled'); - } - else { - $("#pay_button_frame").addClass('disabled'); - } - }); - - $("#pay_button_frame").addClass('disabled'); + // $("#confirm_pics_good").click(function() { + // if (this.checked) { + // $("#pay_button_frame").removeClass('disabled'); + // } + // else { + // $("#pay_button_frame").addClass('disabled'); + // } + // }); + // + // $("#pay_button_frame").addClass('disabled'); initVideoCapture(); initSnapshotHandler(["photo_id", "face"]); @@ -478,8 +480,8 @@
- - + +