Simplify adding results widget
This commit is contained in:
parent
996463b869
commit
c499f18b1b
|
@ -106,7 +106,6 @@
|
|||
for (var i = 0; i < scripts.length; i++) {
|
||||
eval(scripts[i].innerHTML);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
{% load static %}
|
||||
<script>
|
||||
if (typeof grid != "undefined") {
|
||||
grid.removeWidget("drilldown-widget-results");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="drilldown-widget" style="display: none;">
|
||||
<div id="drilldown-widget" style="display: block;">
|
||||
<div id="drilldown-widget-results" class="grid-stack-item" gs-w="10" gs-h="30" gs-y="10" gs-x="1">
|
||||
<div class="grid-stack-item-content">
|
||||
<div class="panel">
|
||||
|
@ -55,8 +50,10 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
if (typeof grid != "undefined") {
|
||||
grid.removeWidget("drilldown-widget-results");
|
||||
//var contents = $("#drilldown-widget").outerHTML;
|
||||
var contents = document.getElementById("drilldown-widget");
|
||||
var scripts = contents.getElementsByTagName("script");
|
||||
|
@ -68,5 +65,4 @@
|
|||
eval(scripts[i].innerHTML);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue