mirror of https://github.com/Aidaho12/haproxy-wi
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
parent
82662042e3
commit
b3b6f7f596
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue