From 2e76c5d3a97186d799425883ba40d31a6217b107 Mon Sep 17 00:00:00 2001 From: JisanAR03 Date: Wed, 1 Nov 2023 18:08:56 +0600 Subject: [PATCH] Fix code scanning alert issue-#1348 --- website/static/vendor/bootstrap/js/bootstrap.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/static/vendor/bootstrap/js/bootstrap.js b/website/static/vendor/bootstrap/js/bootstrap.js index 4732733f6..db6054e73 100644 --- a/website/static/vendor/bootstrap/js/bootstrap.js +++ b/website/static/vendor/bootstrap/js/bootstrap.js @@ -692,8 +692,7 @@ function sanitizeInput(input) { this[this.$element.hasClass('in') ? 'hide' : 'show']() } - Collapse.prototype.getParent = function () { - var sanitizedParent = sanitizeSelector(this.options.parent); + Collapse.prototype.getParent = function () {var sanitizedParent = sanitizeSelector(this.options.parent); return $(sanitizedParent) .find('[data-toggle="collapse"][data-parent="' + sanitizedParent + '"]') .each($.proxy(function (i, element) {