Fixed xsslinter issue for PROD-1527/28
This commit is contained in:
committed by
Ali-D-Akbar
parent
6d8e7dc81e
commit
e14e944e86
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user