1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

Fix entries of user table are visible if database has no tags

This commit is contained in:
Ozzie Isaacs 2021-07-23 19:46:01 +02:00
parent 3c8bfc31e4
commit 3b81ea37f4

View File

@ -661,7 +661,7 @@ function move_header_elements() {
}
});
$(".multi_selector").selectpicker();
if ($(".multi_head").length) {
if (!$._data($(".multi_head").get(0), "events")) {
// Functions have to be here, otherwise the callbacks are not fired if visible columns are changed
$(".multi_head").on("click", function () {
@ -689,6 +689,7 @@ function move_header_elements() {
);
});
}
}
$("#user_delete_selection").click(function () {
$("#user-table").bootstrapTable("uncheckAll");
@ -699,7 +700,7 @@ function move_header_elements() {
$("#select_default_language").on("change", function () {
selectHeader(this, "default_language");
});
if ($(".check_head").length) {
if (!$._data($(".check_head").get(0), "events")) {
$(".check_head").on("change", function () {
var val = $(this).data("set");
@ -708,6 +709,8 @@ function move_header_elements() {
checkboxHeader(val, name, data);
});
}
}
if ($(".button_head").length) {
if (!$._data($(".button_head").get(0), "events")) {
$(".button_head").on("click", function () {
var result = $('#user-table').bootstrapTable('getSelections').map(a => a.id);
@ -733,6 +736,7 @@ function move_header_elements() {
});
}
}
}
function handleListServerResponse (data) {
$("#flash_success").remove();