Files
edx-platform/lms/static/js/verify_student/reverify.js
Syed Ali Abbas Zaidi 5549db4d80 fix: migrate remaining eslint-config-edx (#31760)
* fix: migrate remaining eslint-config-edx

* refactor: updated eslint rules according to eslint-config-edx-es5

* refactor: add custom rules to suppress unnecessary eslint issues

* refactor: add custom rules to internal eslint configs

* fix: fix all indentation issues

* chore: update lock file
2023-03-02 16:16:50 +05: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, _));