Don't compact grid on first load with query

This commit is contained in:
Mark Veidemanis 2022-08-26 07:20:30 +01:00
parent f46b6cd2f6
commit 95f00eface
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@
var grid = document.getElementById("grid-stack-main").gridstack;
grid.addWidget(contents.innerHTML);
contents.outerHTML = "";
grid.compact();
//grid.compact();
// because we remove the element the JS runs in
// so we need to run it again here
// initTabs("{{ unique }}");