summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-26 08:32:42 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-26 08:32:42 +0200
commit6824e6bcf881c83091f844f55fcfed0c5f4de826 (patch)
tree8c3b6fdfa1b17c91caa5e6adff54ce38e02cdf41 /templates/layouts
parent8360f1f3953be284f3f4ff51a6717cc8f4c00176 (diff)
generate autocomplete list dynamically from installed IRIS module
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/app.html.ep3
-rw-r--r--templates/layouts/legacy.html.ep3
2 files changed, 6 insertions, 0 deletions
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index 3727340..f5d0577 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -55,6 +55,9 @@
%= javascript '/static/js/jquery-3.4.1.min.js', defer => undef
%= javascript "/static/${av}/js/jquery-ui.min.js", defer => undef
%= javascript "/static/${av}/js/dbf.min.js", defer => undef
+ % if (not stash('hide_opts')) {
+ %= javascript "/dyn/${av}/autocomplete.js", defer => undef
+ % }
% if (stash('with_geostop')) {
%= javascript "/static/${av}/js/geostop.min.js", defer => undef
% }
diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep
index 7be30f5..60e8fb9 100644
--- a/templates/layouts/legacy.html.ep
+++ b/templates/layouts/legacy.html.ep
@@ -29,6 +29,9 @@
%= javascript '/static/js/jquery-3.4.1.min.js'
%= javascript "/static/${av}/js/jquery-ui.min.js"
%= javascript "/static/${av}/js/dbf.min.js"
+ % if (not stash('hide_opts')) {
+ %= javascript "/dyn/${av}/autocomplete.js", defer => undef
+ % }
%= javascript "/static/${av}/js/marquee.min.js"
%= javascript begin
$(function () { $('marquee').marquee() });