Improve and condense related controls
This commit is contained in:
@@ -50,6 +50,9 @@
|
||||
|
||||
// re-create the HTMX JS listeners, otherwise HTMX won't work inside the grid
|
||||
htmx.process(widgetelement);
|
||||
if (typeof window.giaEnableWidgetSpawnButtons === "function") {
|
||||
window.giaEnableWidgetSpawnButtons(widgetelement);
|
||||
}
|
||||
|
||||
// update the size of the widget according to its content
|
||||
var added_widget = htmx.find(grid_element, "#"+new_id);
|
||||
@@ -77,6 +80,9 @@
|
||||
// container.inner = "";
|
||||
// }
|
||||
grid.compact();
|
||||
if (typeof window.giaEnableWidgetSpawnButtons === "function") {
|
||||
window.giaEnableWidgetSpawnButtons(document);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user