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.
pull/399/head
Aidaho 2024-10-03 19:53:05 +03:00
parent 82662042e3
commit b3b6f7f596
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}

View File

@ -183,5 +183,4 @@
{% if g.user_params['role'] != 1 %}
<input id="new-sshgroup" type="hidden" value="{{ g.user_params['group_id'] }}">
{% endif %}
{% include 'include/intro/js_script.html' %}
{% endblock %}