aboutsummaryrefslogtreecommitdiff
path: root/basicConfig/webcontent/autocommit.js
diff options
context:
space:
mode:
authorChristian Kollmann <christian.kollmann@a-sit.at>2021-12-07 09:00:22 +0100
committerChristian Kollmann <christian.kollmann@a-sit.at>2021-12-07 11:01:13 +0100
commita017ebff96d2cc12943801c933e5733b4e827b3b (patch)
tree3016eed0fe5491e6dd7a377d7b3684298d12d80b /basicConfig/webcontent/autocommit.js
parent514f99284299882ce9b3e7741094eb55561b503e (diff)
downloadNational_eIDAS_Gateway-a017ebff96d2cc12943801c933e5733b4e827b3b.tar.gz
National_eIDAS_Gateway-a017ebff96d2cc12943801c933e5733b4e827b3b.tar.bz2
National_eIDAS_Gateway-a017ebff96d2cc12943801c933e5733b4e827b3b.zip
Use relative paths in templates to enable preview in browser
If Thymeleaf is active (i.e. the template is rendered by the Webapp), the path gets replaced anyway.
Diffstat (limited to 'basicConfig/webcontent/autocommit.js')
-rw-r--r--basicConfig/webcontent/autocommit.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/basicConfig/webcontent/autocommit.js b/basicConfig/webcontent/autocommit.js
new file mode 100644
index 00000000..d21a5651
--- /dev/null
+++ b/basicConfig/webcontent/autocommit.js
@@ -0,0 +1,5 @@
+function autoCommmit() {
+ document.forms[0].submit();
+}
+
+document.addEventListener('DOMContentLoaded', autoCommmit); \ No newline at end of file