Commit 0c3468a0 by Eric Fischer

Use edx.HtmlUtils properly in incourse_reverify_view

parent df2f347a
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
var edx = edx || {}; var edx = edx || {};
(function( $, _, _s, Backbone, gettext ) { (function( $, _, _s, Backbone, gettext, HtmlUtils ) {
'use strict'; 'use strict';
edx.verify_student = edx.verify_student || {}; edx.verify_student = edx.verify_student || {};
...@@ -40,13 +40,15 @@ ...@@ -40,13 +40,15 @@
}, },
render: function() { render: function() {
var renderedTemplate = _.template($( this.templateId ).html())( HtmlUtils.setHtml(
{ this.el,
courseKey: this.courseKey, HtmlUtils.template($( this.templateId ).html())(
platformName: this.platformName {
} courseKey: this.courseKey,
platformName: this.platformName
}
)
); );
$( this.el ).html( renderedTemplate );
// Render the webcam view *after* the parent view // Render the webcam view *after* the parent view
// so that the container div for the webcam // so that the container div for the webcam
...@@ -100,4 +102,4 @@ ...@@ -100,4 +102,4 @@
.attr('aria-disabled', !isEnabled); .attr('aria-disabled', !isEnabled);
} }
}); });
})(jQuery, _, _.str, Backbone, gettext); })(jQuery, _, _.str, Backbone, gettext, edx.HtmlUtils);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment