From 361236d54e507b83e64bc53ef8c8a4a1b0e9a19e Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Wed, 12 Dec 2012 11:02:54 +1300 Subject: [PATCH] Bug 9268 - Followup - Making it work properly in chrome as well To test: (go through the previous test plan on chrome instead of Firefox) --- koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 4 +++- .../prog/en/modules/acqui/neworderempty.tt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js index 2c15b04..e5f6276 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js @@ -242,4 +242,6 @@ function check_additem(unique_item_fields) { } return success; } - +// Do not submit form in chrome if barcode is scanned - requires Add the following attribute into each input type="text" tag(s) on add item pages : onkeypress="return noenter()" +function noenter() { + return !(window.event && window.event.keyCode == 13); } 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 f3ad6f7..e8463af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -281,10 +281,10 @@ $(document).ready(function()
  • [% IF ( biblionumber ) %] ISBN: - [% isbn %] + [% isbn %] [% ELSE %] - + [% END %]
  • [% IF (UNIMARC) %] -- 1.7.9.5