From 3640e75ab86fc9d8a883aad3221c800769a5d505 Mon Sep 17 00:00:00 2001 From: axunonb Date: Thu, 11 Apr 2024 20:01:52 +0200 Subject: [PATCH] Undo // NOSONAR in JS, because it has no effect --- League/Scripts/Site.ModalForm.js | 10 +++++----- League/Scripts/Site.ShowPassword.js | 2 +- League/Scripts/Site.TempusDominusFactory.js | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/League/Scripts/Site.ModalForm.js b/League/Scripts/Site.ModalForm.js index fc07ca9..92e7ee7 100644 --- a/League/Scripts/Site.ModalForm.js +++ b/League/Scripts/Site.ModalForm.js @@ -1,20 +1,20 @@ // All scripts go into the same namespace 'use strict'; if (typeof Site === 'undefined') { - var Site = {}; // NOSONAR + var Site = {}; } // Define all undefined variables as empty objects if (typeof bootstrap === 'undefined') { - var bootstrap = {}; // NOSONAR + var bootstrap = {}; } if (typeof JL === 'undefined') { - var JL = {}; // NOSONAR + var JL = {}; } if (typeof URLSearchParams === 'undefined') { - var URLSearchParams = {}; // NOSONAR + var URLSearchParams = {}; } if (typeof AbortController === 'undefined') { - var AbortController = {}; // NOSONAR + var AbortController = {}; } /* Handling of forms inside Bootstrap 5 modals */ diff --git a/League/Scripts/Site.ShowPassword.js b/League/Scripts/Site.ShowPassword.js index 9474b91..aacad48 100644 --- a/League/Scripts/Site.ShowPassword.js +++ b/League/Scripts/Site.ShowPassword.js @@ -1,6 +1,6 @@ // All scripts go into the same namespace if (typeof Site === 'undefined') { - var Site = {}; // NOSONAR + var Site = {}; } /* Make characters of an field visible/invisible. diff --git a/League/Scripts/Site.TempusDominusFactory.js b/League/Scripts/Site.TempusDominusFactory.js index 0854885..09348a3 100644 --- a/League/Scripts/Site.TempusDominusFactory.js +++ b/League/Scripts/Site.TempusDominusFactory.js @@ -1,9 +1,9 @@ // All Site scripts go into the same namespace if (typeof Site === 'undefined') { - var Site = {}; // NOSONAR + var Site = {}; } if (typeof tempusDominus === 'undefined') { - var tempusDominus = window.tempusDominus; // NOSONAR + var tempusDominus = window.tempusDominus; } Site.TempusDominusFactory = class {