]> git.koha-community.org Git - koha.git/commit
Bug 15911: Use noEnterSubmit CSS class instead of prevent_submit.js
authorOwen Leonard <oleonard@myacpl.org>
Fri, 22 Feb 2019 14:27:07 +0000 (14:27 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 13 Mar 2019 03:42:09 +0000 (03:42 +0000)
commit1af8ab1fc73030f903351c0e097ed73f1f869256
tree2480c7d7bb5b3c693ba20f7e6d8de4dca72ee5d3
parent46eb540f6401960f10a53bd852c8d8c295d66fb4
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 <hayleymapley@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt
koha-tmpl/intranet-tmpl/prog/js/prevent_submit.js [deleted file]