From b3b6f7f596da89b6324cb3c91f79d43170b48727 Mon Sep 17 00:00:00 2001 From: Aidaho Date: Thu, 3 Oct 2024 19:53:05 +0300 Subject: [PATCH] v8.2: Fix strict equality check and remove unused intro.js template Updated script.js to use strict equality for empty string checks and removed an obsolete inclusion of intro.js in admin.html. These changes enhance code accuracy and reduce unnecessary clutter in the project. --- app/static/js/script.js | 2 +- app/templates/admin.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/static/js/script.js b/app/static/js/script.js index c596ba04..8751cf29 100644 --- a/app/static/js/script.js +++ b/app/static/js/script.js @@ -12,7 +12,7 @@ function ValidateIPaddress(ipaddress) { } var select_server = translate_div.attr('data-select_server'); function checkIsServerFiled(select_id, message = select_server) { - if ($(select_id).val() == null || $(select_id).val() == '') { + if ($(select_id).val() == null || $(select_id).val() === '') { toastr.warning(message); return false; } diff --git a/app/templates/admin.html b/app/templates/admin.html index 0f7c90c3..a8480330 100644 --- a/app/templates/admin.html +++ b/app/templates/admin.html @@ -183,5 +183,4 @@ {% if g.user_params['role'] != 1 %} {% endif %} -{% include 'include/intro/js_script.html' %} {% endblock %}