diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index fc91744..227a4b4 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -83,13 +83,11 @@ // GridStack.init(); setupTags(); document.addEventListener('load-widget', function(event) { - grid.removeWidget("drilldown-widget-results"); - let container = htmx.find('#drilldown-widget'); var scripts = htmx.findAll(container, "script"); let widgetelement = container.firstElementChild.cloneNode(true); - container.firstElementChild.remove(); - //let grid = document.querySelector('.grid-stack').gridstack; + container.outerHTML = ""; + grid.addWidget(widgetelement); htmx.process(widgetelement); diff --git a/core/templates/widgets/drilldown.html b/core/templates/widgets/drilldown.html index 7420d91..b3bb94a 100644 --- a/core/templates/widgets/drilldown.html +++ b/core/templates/widgets/drilldown.html @@ -11,24 +11,18 @@