diff options
Diffstat (limited to 'public/rsc')
-rw-r--r-- | public/rsc/js/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/rsc/js/app.js b/public/rsc/js/app.js index d1b9f55..b806baf 100644 --- a/public/rsc/js/app.js +++ b/public/rsc/js/app.js @@ -1,5 +1,7 @@ -function confirmSubmit(event, element) { +function confirmSubmit(event, element, idform) { if (window.confirm('Confirmer ? ' + element) === false) { event.preventDefault(); + } else { + document.getElementById(idform).submit(); } }
\ No newline at end of file |