From 963b1af8a865ad4caf7df5315fc0c00480ecacd3 Mon Sep 17 00:00:00 2001 From: Christophe Croullebois Date: Thu, 20 Sep 2012 16:06:29 +0200 Subject: [PATCH] Bug 8557: Prevents form validation by pressing "Enter" this patch prevents a scan machine to send 'enter' to the form when it is not expected. The patch is on orderreceive.tt and serials-edit.tt. Written by Alex Arnaud. MT6626. Signed-off-by: Marc Veron Tested with receiving orders and receiving serials. Could reporduce problem befor applying the patch. After applying the patch both forms behaved as expected. Signed-off-by: Katrin Fischer Checked order receive and serials edit page, barcode + enter does no longer submit the form. All tests pass. Signed-off-by: Jared Camins-Esakov --- .../intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 3 ++- .../intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index c6559c398f..79811bd7e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -322,7 +322,8 @@
- + + Cancel
[% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt index 61b76a9dd8..3fe4dc5e8f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt @@ -370,8 +370,11 @@ $(document).ready(function() { [% END %] -
- [% UNLESS ( serialsadditems ) %]  [% END %] +
+ + + [% UNLESS ( serialsadditems ) %]  [% END %] +
-- 2.39.5