From 65796d4a2349e71ca05f5f298d6f94ff792d88b2 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 12 Oct 2018 11:36:05 +0200 Subject: 2.91 folder moves + auto summary --- public/w/rsc/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 public/w/rsc/js/app.js (limited to 'public/w/rsc/js/app.js') 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 -- cgit v1.2.3