diff --git a/.jshintrc b/.jshintrc index 42c7dbc103..85f5d2013a 100644 --- a/.jshintrc +++ b/.jshintrc @@ -109,10 +109,10 @@ // The parameter "predef" should remain empty for this configuration file // to remain as general as possible. "predef": [ - // jQuery globals - "jQuery", "$", - - // Underscore.js globals + // JavaScript global libraries + "Backbone", + "jQuery", + "$", "_", // RequireJS globals diff --git a/lms/static/js/verify_student/views/incourse_reverify_view.js b/lms/static/js/verify_student/views/incourse_reverify_view.js index ed57e692aa..1587f44aef 100644 --- a/lms/static/js/verify_student/views/incourse_reverify_view.js +++ b/lms/static/js/verify_student/views/incourse_reverify_view.js @@ -6,7 +6,7 @@ */ var edx = edx || {}; - (function( $, _, _s, Backbone, gettext ) { + (function( $, _, _s, Backbone, gettext, HtmlUtils ) { 'use strict'; edx.verify_student = edx.verify_student || {}; @@ -40,13 +40,15 @@ }, render: function() { - var renderedTemplate = _.template($( this.templateId ).html())( - { - courseKey: this.courseKey, - platformName: this.platformName - } + HtmlUtils.setHtml( + this.el, + HtmlUtils.template($( this.templateId ).html())( + { + courseKey: this.courseKey, + platformName: this.platformName + } + ) ); - $( this.el ).html( renderedTemplate ); // Render the webcam view *after* the parent view // so that the container div for the webcam @@ -100,4 +102,4 @@ .attr('aria-disabled', !isEnabled); } }); -})(jQuery, _, _.str, Backbone, gettext); +})(jQuery, _, _.str, Backbone, gettext, edx.HtmlUtils);