PROD-1603
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
define(['jquery', 'underscore', 'js/views/baseview', 'gettext'],
|
||||
function($, _, BaseView, gettext) {
|
||||
define(['jquery', 'underscore', 'js/views/baseview', 'gettext', 'edx-ui-toolkit/js/utils/html-utils'],
|
||||
function($, _, BaseView, gettext, HtmlUtils) {
|
||||
'use strict';
|
||||
/**
|
||||
* View for xblock validation messages as displayed in Studio.
|
||||
*/
|
||||
@@ -13,12 +14,13 @@ define(['jquery', 'underscore', 'js/views/baseview', 'gettext'],
|
||||
},
|
||||
|
||||
render: function() {
|
||||
this.$el.html(this.template({
|
||||
var attributes = {
|
||||
validation: this.model,
|
||||
additionalClasses: this.getAdditionalClasses(),
|
||||
getIcon: this.getIcon.bind(this),
|
||||
getDisplayName: this.getDisplayName.bind(this)
|
||||
}));
|
||||
};
|
||||
this.$el.html(HtmlUtils.HTML(this.template(attributes)).toString());
|
||||
return this;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user