From a91c916248f967da2d4218b575e665242b7c975b Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 25 Oct 2018 20:25:05 +0200 Subject: phoenixreborn\'NWY --- public/rsc/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 public/rsc/js/app.js (limited to 'public/rsc/js/app.js') diff --git a/public/rsc/js/app.js b/public/rsc/js/app.js new file mode 100644 index 0000000..1f1df61 --- /dev/null +++ b/public/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