aboutsummaryrefslogtreecommitdiff
path: root/public/w/rsc/js/app.js
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-10-12 11:36:05 +0200
committervincent-peugnet <v.peugnet@free.fr>2018-10-12 11:36:05 +0200
commit65796d4a2349e71ca05f5f298d6f94ff792d88b2 (patch)
treeef73e39b4b54ccd36b61b783c438036761d17811 /public/w/rsc/js/app.js
parent74ccedd6544daac0845a044b5e6d71d577578c69 (diff)
downloadwcms-65796d4a2349e71ca05f5f298d6f94ff792d88b2.tar.gz
wcms-65796d4a2349e71ca05f5f298d6f94ff792d88b2.zip
2.91 folder moves + auto summary
Diffstat (limited to 'public/w/rsc/js/app.js')
-rw-r--r--public/w/rsc/js/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/w/rsc/js/app.js b/public/w/rsc/js/app.js
new file mode 100644
index 0000000..1f1df61
--- /dev/null
+++ b/public/w/rsc/js/app.js
@@ -0,0 +1,7 @@
+function confirmSubmit(event, element, idform) {
+ if (window.confirm('Confirm ? ' + element) === false) {
+ event.preventDefault();
+ } else {
+ document.getElementById(idform).submit();
+ }
+} \ No newline at end of file