Don't compact grid on first load with query
This commit is contained in:
parent
f46b6cd2f6
commit
95f00eface
|
@ -101,7 +101,7 @@
|
||||||
var grid = document.getElementById("grid-stack-main").gridstack;
|
var grid = document.getElementById("grid-stack-main").gridstack;
|
||||||
grid.addWidget(contents.innerHTML);
|
grid.addWidget(contents.innerHTML);
|
||||||
contents.outerHTML = "";
|
contents.outerHTML = "";
|
||||||
grid.compact();
|
//grid.compact();
|
||||||
// because we remove the element the JS runs in
|
// because we remove the element the JS runs in
|
||||||
// so we need to run it again here
|
// so we need to run it again here
|
||||||
// initTabs("{{ unique }}");
|
// initTabs("{{ unique }}");
|
||||||
|
|
Loading…
Reference in New Issue