Fixed xsslinter issue for PROD-1527/28

This commit is contained in:
Ahtisham Shahid
2020-07-21 17:18:19 +05:00
committed by Ali-D-Akbar
parent 6d8e7dc81e
commit e14e944e86
2 changed files with 4 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ define([
},
render: function() {
this.$el.html(_.template(licenseSelectorTemplate)({
edx.HtmlUtils.setHtml(this.$el, edx.HtmlUtils.template(licenseSelectorTemplate)({
model: this.model.attributes,
licenseString: this.model.toString() || '',
licenseInfo: this.licenseInfo,

View File

@@ -38,7 +38,7 @@ define([
},
render: function(model) {
this.$el.html(this.template({
var template = this.template({
itemCategoryDisplayName: this.itemCategoryDisplayName,
newItemMessage: this.newItemMessage,
emptyMessage: this.emptyMessage,
@@ -46,7 +46,8 @@ define([
isEditing: model && model.get('editing'),
canCreateNewItem: this.canCreateItem(this.collection),
restrictEditing: this.restrictEditing
}));
});
edx.HtmlUtils.setHtml(this.$el, edx.HtmlUtils.HTML(template));
this.collection.each(function(model) {
this.$(this.listContainerCss).append(