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.';
|
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() {
|
function applyColumnPreferences() {
|
||||||
if (!table) {
|
if (!table) {
|
||||||
return;
|
return;
|
||||||
@@ -1419,6 +1428,7 @@ const queryLogHTML = `<!doctype html>
|
|||||||
column.show();
|
column.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
relayoutTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildAjaxURL(url, config, params) {
|
function buildAjaxURL(url, config, params) {
|
||||||
|
|||||||
Reference in New Issue
Block a user