Bugzilla – Attachment 14328 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]
[SIGNED-OFF] Bug 9268 - Scanning in barcode or ISBN in Acquisitions -> new order submits the form unexpectedly
SIGNED-OFF-Bug-9268---Scanning-in-barcode-or-ISBN-.patch (text/plain), 1.96 KB, created by
Katrin Fischer
on 2012-12-29 09:34:25 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9268 - Scanning in barcode or ISBN in Acquisitions -> new order submits the form unexpectedly
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-12-29 09:34:25 UTC
Size:
1.96 KB
patch
obsolete
>From 98028dc4f82725812eb8bd746ce3db5712c13e0d Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Wed, 12 Dec 2012 14:55:14 +1300 >Subject: [PATCH] [SIGNED-OFF] Bug 9268 - Scanning in barcode or ISBN in > Acquisitions -> new order submits the form unexpectedly > >To Test: > >* Go to Acquisitions - Manage Orders >* Search for a vendor >* Click New Basket. >* Fill required fields >* Press Save. >* Click on "From a new (empty) record" >* Type in title Private Oz, Author Patterson, James. >* Scan (or type) ISBN - 9781864711875. >* (If not scanning, PRESS ENTER HERE) >* Nothing should happen. Form should not be submitted, no error message should appear. > >Sponsored by: Hauraki District Libraries, New Zealand > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Tested according to test plan in Firefox and Chromium on Ubuntu. >--- > .../prog/en/modules/acqui/neworderempty.tt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >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 2631e3c..32fb5bc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -7,6 +7,24 @@ > [% INCLUDE 'additem.js.inc' %] > <script type="text/javascript" src="[% themelang %]/js/additem.js"></script> > <script type="text/javascript"> >+var nav = window.Event ? true : false; >+if (nav) { >+ window.captureEvents(Event.KEYDOWN); >+ window.onkeydown = NetscapeEventHandler_KeyDown; >+} else { >+ document.onkeydown = IEEventHandler_KeyDown; >+} >+ >+function NetscapeEventHandler_KeyDown(e) { >+ if (e.which == 13 && e.target.type != 'textarea' && e.target.type != 'submit') { return false; } >+ return true; >+} >+ >+function IEEventHandler_KeyDown() { >+ if (event.keyCode == 13 && event.srcElement.type != 'textarea' && event.srcElement.type != 'submit') >+ return false; >+ return true; >+} > //<![CDATA[ > actTotal = ""; > >-- >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