PROD-1603

This commit is contained in:
Ali-D-Akbar
2020-07-15 16:14:19 +05:00
parent 4d0c491259
commit 8876e7bf25

View File

@@ -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;
},