Files
edx-platform/lms/static/js/verify_student/incourse_reverify.js
Eric Fischer 5bc6b31e29 eslint --fix
2017-12-08 14:38:41 -05:00

28 lines
723 B
JavaScript

/**
* Set up the in-course reverification page.
*
* This loads data from the DOM's "data-*" attributes
* and uses these to initialize the top-level views
* on the page.
*/
var edx = edx || {};
(function($, _) {
'use strict';
var errorView,
$el = $('#incourse-reverify-container');
edx.verify_student = edx.verify_student || {};
errorView = new edx.verify_student.ErrorView({
el: $('#error-container')
});
return new edx.verify_student.InCourseReverifyView({
courseKey: $el.data('course-key'),
platformName: $el.data('platform-name'),
usageId: $el.data('usage-id'),
errorModel: errorView.model
}).render();
}(jQuery, _));