From b15f47425d89a2c30395e5fd380f022de064ec10 Mon Sep 17 00:00:00 2001 From: Syed Ali Abbas Zaidi Date: Sat, 6 May 2023 00:37:18 +0500 Subject: [PATCH] fix: failing xss-lint issues --- cms/static/js/views/baseview.js | 3 +-- common/static/js/capa/schematicinput.js | 2 +- .../js/certificates/views/certificate_bulk_allowlist.js | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cms/static/js/views/baseview.js b/cms/static/js/views/baseview.js index 266264bb6c8d..3893269e6fba 100644 --- a/cms/static/js/views/baseview.js +++ b/cms/static/js/views/baseview.js @@ -46,8 +46,7 @@ function($, _, Backbone, gettext, IframeUtils, TemplateUtils, ViewUtils) { var _this = this; // xss-lint: disable=javascript-jquery-insertion - // eslint-disable-next-line no-shadow - this.render = _.wrap(this.render, function(render, options) { + this.render = _.wrap(this.render, function(render, options) { // eslint-disable-line no-shadow _this.beforeRender(); render(options); _this.afterRender(); diff --git a/common/static/js/capa/schematicinput.js b/common/static/js/capa/schematicinput.js index 6940ae704c00..71c0f8fd15d2 100644 --- a/common/static/js/capa/schematicinput.js +++ b/common/static/js/capa/schematicinput.js @@ -2,8 +2,8 @@ $(function() { // TODO: someone should fix all of this... // $("a[rel*=leanModal]").leanModal(); //TODO: Make this work with the new modal library. Try and integrate this with the "slices" + /* eslint-disable no-multi-str */ // xss-lint: disable=javascript-jquery-append - // eslint-disable-next-line no-multi-str $('body').append('\