From 94f6bb66d220724e87ca6e33fde6b30a5e396e98 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Fri, 20 Sep 2013 10:59:17 -0400 Subject: [PATCH] Hide the 'take photo' button when there isn't a camera. --- lms/static/js/verify_student/photocapture.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/static/js/verify_student/photocapture.js b/lms/static/js/verify_student/photocapture.js index 5f39a6e55e..0519767841 100644 --- a/lms/static/js/verify_student/photocapture.js +++ b/lms/static/js/verify_student/photocapture.js @@ -1,6 +1,8 @@ var onVideoFail = function(e) { if(e == 'NO_DEVICES_FOUND') { $('#no-webcam').show(); + $('#face_capture_button').hide(); + $('#photo_id_capture_button').hide(); } else { console.log('Failed to get camera access!', e);