Fix bug not saving table column config

pull/429/head
Luke Prior 2021-04-03 21:16:50 +11:00 zatwierdzone przez GitHub
rodzic 84e8a78120
commit 50687831b3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -725,7 +725,7 @@
});
// Function to change table columns visible.
$(document).on('change', 'form input', function() {
$(document).on('change', 'form input', function() {
var checked = $(this).is(":checked");
if (checked == false) {
@ -734,10 +734,10 @@
var cookiesend = 'true';
}
// Set cookie for columns to show in future.
setCookie("col" + index, cookiesend, 365);
var index = $(this).attr("class");
// Set cookie for columns to show in future.
setCookie("col" + index, cookiesend, 365);
// Update Tabulator table with selected columns visible.
if(checked) {