Don't compact grid on first load with query
This commit is contained in:
@@ -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 }}");
|
||||||
|
|||||||
Reference in New Issue
Block a user