aboutsummaryrefslogtreecommitdiff
path: root/public/w/rsc/js/app.js
diff options
context:
space:
mode:
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