* fix: multi lines and spaces issues * fix: eslint operator-linebreak issue * fix: eslint quotes issue * fix: remaining quotes issues * fix: eslint object curly newline issue * fix: eslint object curly spacing issue * fix: eslint brace-style issues * fix: react jsx indent and props issues * fix: eslint trailing spaces issues * fix: eslint linbreak style issue * fix: eslint space unary operator issue * fix: eslint line around directives issue * fix: void and typeof space unary ops issue
29 lines
708 B
JavaScript
29 lines
708 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, _));
|