diff --git a/lms/static/js/verify_student/photocapture.js b/lms/static/js/verify_student/photocapture.js index 47c6b653fb..5f39a6e55e 100644 --- a/lms/static/js/verify_student/photocapture.js +++ b/lms/static/js/verify_student/photocapture.js @@ -50,7 +50,11 @@ var submitToPaymentProcessing = function() { $("#pay_form").submit(); }) .fail(function(jqXhr,text_status, error_thrown) { - alert(jqXhr.responseText); + if(jqXhr.status == 400) { + $('#order-error .copy p').html(jqXhr.responseText); + } + $('#order-error').show(); + $("html, body").animate({ scrollTop: 0 }); }); } diff --git a/lms/templates/verify_student/photo_verification.html b/lms/templates/verify_student/photo_verification.html index bec59216be..49c7886e89 100644 --- a/lms/templates/verify_student/photo_verification.html +++ b/lms/templates/verify_student/photo_verification.html @@ -38,6 +38,17 @@ +