Files
edx-platform/lms/static/js/verify_student/reverify.js
Will Daly 8c52c92bcb Reverification iOS support and refactor
* Delete reverification templates
* Delete photocapture.js
* Delete unused "name change" end-points
* Rebuild the reverification views using Backbone sub-views
* Stop passing template names to the JavaScript code
* Avoid hard-coding the parent view ID in the webcam view (for getting the capture click sound URL)
2015-06-22 08:45:12 -07:00

45 lines
1.4 KiB
JavaScript

/**
* Reverification flow.
*
* This flow allows students who have a denied or expired verification
* to re-submit face and ID photos. It re-uses most of the same sub-views
* as the payment/verification flow.
*/
var edx = edx || {};
(function( $, _ ) {
'use strict';
var errorView,
el = $('#reverify-container');
edx.verify_student = edx.verify_student || {};
// Initialize an error view for displaying top-level error messages.
errorView = new edx.verify_student.ErrorView({
el: $('#error-container')
});
// Initialize the base view, passing in information
// from the data attributes on the parent div.
return new edx.verify_student.ReverifyView({
errorModel: errorView.model,
stepInfo: {
'face-photo-step': {
platformName: el.data('platform-name'),
captureSoundPath: el.data('capture-sound')
},
'id-photo-step': {
platformName: el.data('platform-name'),
captureSoundPath: el.data('capture-sound')
},
'review-photos-step': {
fullName: el.data('full-name'),
platformName: el.data('platform-name')
},
'reverify-success-step': {
platformName: el.data('platform-name')
}
}
}).render();
})( jQuery, _ );