mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Appease Zedifus
This commit is contained in:
parent
c7394ab77e
commit
71fd416fd0
@ -632,7 +632,7 @@
|
|||||||
|
|
||||||
$(document).on("mousedown keyup click", function (event) {
|
$(document).on("mousedown keyup click", function (event) {
|
||||||
const value = $('.dataTables_filter input').val();
|
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) {
|
if ($("table#servers_table tbody").sortable("toArray").length > 1 && value === '' && !is_mobile) {
|
||||||
$("table#servers_table tbody").sortable("enable");
|
$("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
|
// 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
|
// 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" });
|
$("div#servers_table_wrapper").css({ overflow: "hidden" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -316,7 +316,7 @@
|
|||||||
},
|
},
|
||||||
callback: function (result) {
|
callback: function (result) {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
if (result == true) {
|
if (result === true) {
|
||||||
location.href = "/panel/remove_user?id=" + userId;
|
location.href = "/panel/remove_user?id=" + userId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -338,7 +338,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
callback: function (result) {
|
callback: function (result) {
|
||||||
if (result == true) {
|
if (result === true) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('superuser').checked = false;
|
document.getElementById('superuser').checked = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user