You've already forked caddy-opnsense-blocker
Relayout Tabulator after column visibility changes
This commit is contained in:
@@ -1404,6 +1404,15 @@ const queryLogHTML = `<!doctype html>
|
||||
document.getElementById('controls-summary').textContent = parts.length ? parts.join(' · ') : 'No active filters.';
|
||||
}
|
||||
|
||||
function relayoutTable() {
|
||||
if (!table) {
|
||||
return;
|
||||
}
|
||||
window.requestAnimationFrame(function() {
|
||||
table.redraw(true);
|
||||
});
|
||||
}
|
||||
|
||||
function applyColumnPreferences() {
|
||||
if (!table) {
|
||||
return;
|
||||
@@ -1419,6 +1428,7 @@ const queryLogHTML = `<!doctype html>
|
||||
column.show();
|
||||
}
|
||||
}
|
||||
relayoutTable();
|
||||
}
|
||||
|
||||
function buildAjaxURL(url, config, params) {
|
||||
|
||||
Reference in New Issue
Block a user