summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/ucode/template/footer.ut
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/ucode/template/footer.ut')
-rw-r--r--modules/luci-base/ucode/template/footer.ut4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/ucode/template/footer.ut b/modules/luci-base/ucode/template/footer.ut
index d0978594f8..0ab06ae0b9 100644
--- a/modules/luci-base/ucode/template/footer.ut
+++ b/modules/luci-base/ucode/template/footer.ut
@@ -5,7 +5,7 @@
{% const rollback = dispatcher.rollback_pending() %}
{% if (rollback || trigger_apply || trigger_revert): %}
- <script type="text/javascript">
+ <script>
document.addEventListener("luci-loaded", function() {
{% if (trigger_apply): %}
L.ui.changes.apply(true);
@@ -19,7 +19,7 @@
{% endif %}
{% if (media_error): %}
- <script type="text/javascript">
+ <script>
L.require('ui').then(function(ui) {
ui.showIndicator('media_error', _('Theme fallback'), function(ev) {
ui.showModal(_('Error loading theme'), [