refactor: disable xss PROD-2316

This commit is contained in:
Ali-D-Akbar
2021-04-14 16:42:57 +05:00
parent 66c2da1ab4
commit b8d36e7a18

View File

@@ -31,7 +31,7 @@ var edx = edx || {};
type: 'hidden',
name: key,
value: value
}).appendTo(form);
}).appendTo(form); // xss-lint: disable=javascript-jquery-insert-into-target
});
};
@@ -98,7 +98,7 @@ var edx = edx || {};
*/
render: function() {
var html = _.template($('#donation-tpl').html())({});
this.$el.html(html);
this.$el.html(html); // xss-lint: disable=javascript-jquery-html
this.$amount = $('input[name="amount"]', this.$el);
this.$submit = $('.action-donate', this.$el);
this.$errorMsg = $('.donation-error-msg', this.$el);