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 @@

-
- {% include 'window-content/drilldown.html' %} -
+ {% include 'window-content/drilldown.html' %}
+ \ No newline at end of file diff --git a/core/templates/widgets/table_results.html b/core/templates/widgets/table_results.html index af72326..69d0711 100644 --- a/core/templates/widgets/table_results.html +++ b/core/templates/widgets/table_results.html @@ -1,6 +1,6 @@ {% load static %} -
+
@@ -52,16 +52,7 @@