Update the carousel with which step the user is on

This commit is contained in:
Diana Huang
2013-09-04 09:21:07 -04:00
parent 35a7b75eb2
commit f4c1a8f27b

View File

@@ -175,8 +175,17 @@ $(document).ready(function() {
$("#confirm_pics_good").change(function() {
$("#pay_button").toggleClass('disabled');
});
$("#pay_button_frame").addClass('disabled');
// add in handlers to add/remove the correct classes to the body
// when moving between steps
$('#face_next_button').click(function(){
$('body').addClass('step-photos-id').removeClass('step-photos-cam')
})
$('#photo_id_next_button').click(function(){
$('body').addClass('step-review').removeClass('step-photos-id')
})
var hasHtml5CameraSupport = initVideoCapture();