From 9e9881a7661532592a871265d75ee017a0e2255c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Feb 2019 14:27:07 +0000 Subject: [PATCH] Bug 15911: Use noEnterSubmit CSS class instead of prevent_submit.js This patch removes the use of a separate js file, prevent_submit.js, in favor of using a CSS class to trigger the same functionality in staff-global.js. To test, apply the patch and test the following pages to confirm that pressing "Enter" when the cursor is in any field in the main form does not submit the form. - In Acquisitions, add to a basket from a new (empty) record - In Acquisitions, receive an order line - In Serials, locate a subscription and open the "Edit serials" page from the "Serial collection" page. Signed-off-by: Hayley Mapley --- .../intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 3 +-- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 3 +-- .../intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 3 +-- koha-tmpl/intranet-tmpl/prog/js/prevent_submit.js | 11 ----------- 4 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/js/prevent_submit.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index b3b8b41f9e..ff0113f563 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -71,7 +71,7 @@ [% END %] -
+
Patrons @@ -532,7 +532,6 @@ [% INCLUDE 'additem.js.inc' %] [% Asset.js("js/additem.js") | $raw %] [% Asset.js("js/cataloging.js") | $raw %] - [% Asset.js("js/prevent_submit.js") | $raw %]