Appease Zedifus

This commit is contained in:
amcmanu3 2022-04-02 21:47:32 -04:00
parent c7394ab77e
commit 71fd416fd0
2 changed files with 4 additions and 4 deletions

View File

@ -632,7 +632,7 @@
$(document).on("mousedown keyup click", function (event) {
const value = $('.dataTables_filter input').val();
const is_mobile = $('#mobile').css('display') == 'none';
const is_mobile = $('#mobile').css('display') === 'none';
if ($("table#servers_table tbody").sortable("toArray").length > 1 && value === '' && !is_mobile) {
$("table#servers_table tbody").sortable("enable");
@ -691,7 +691,7 @@
// Fixes the appearance of a scrollbar when a user tries to drag an item too low
// Disabled on mobile since sorting is disabled on mobile
if ($('#mobile').css('display') != 'none') {
if ($('#mobile').css('display') !== 'none') {
$("div#servers_table_wrapper").css({ overflow: "hidden" });
}
});

View File

@ -316,7 +316,7 @@
},
callback: function (result) {
console.log(result);
if (result == true) {
if (result === true) {
location.href = "/panel/remove_user?id=" + userId;
}
}
@ -338,7 +338,7 @@
}
},
callback: function (result) {
if (result == true) {
if (result === true) {
return;
} else {
document.getElementById('superuser').checked = false;