Bugzilla – Attachment 14017 Details for
Bug 9268
Scanning in barcode or ISBN in Acquisitions -> new order submits the form unexpectedly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9268 - Followup - Making it work properly in chrome as well
Bug-9268---Followup---Making-it-work-properly-in-c.patch (text/plain), 2.06 KB, created by
Liz Rea
on 2012-12-12 00:28:59 UTC
(
hide
)
Description:
Bug 9268 - Followup - Making it work properly in chrome as well
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-12-12 00:28:59 UTC
Size:
2.06 KB
patch
obsolete
>From 361236d54e507b83e64bc53ef8c8a4a1b0e9a19e Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >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() > <li> > [% IF ( biblionumber ) %] > <span class="label">ISBN: </span> >- <input type="hidden" size="50" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %] >+ <input type="hidden" size="50" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %] > [% ELSE %] > <label for="ISBN">ISBN: </label> >- <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" /> >+ <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" onkeypress="return noenter()"/> > [% END %] > </li> > [% IF (UNIMARC) %] >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9268
:
14016
|
14017
|
14018
|
14064
|
14328
|
14946