From 899a4bd60570ff9b77fabe89dd4902f09bbdeb47 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 13 Apr 2018 22:46:13 +0200 Subject: V2 feat nico search lien confirm background100% --- public/rsc/js/app.js | 5 +++++ 1 file changed, 5 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..d1b9f55 --- /dev/null +++ b/public/rsc/js/app.js @@ -0,0 +1,5 @@ +function confirmSubmit(event, element) { + if (window.confirm('Confirmer ? ' + element) === false) { + event.preventDefault(); + } +} \ No newline at end of file -- cgit v1.2.3