[Koha-patches] [PATCH] Adding javascript to prevent premature submission of forms when using a barcode scanner (or by hitting the enter key). Addresses Bug 2591

henridamien.laurent henridamien.laurent at biblibre.com
Mon Oct 6 16:50:46 CEST 2008


Jesse Weaver a écrit :
> On Mon, Oct 6, 2008 at 7:01 AM, Owen Leonard <oleonard at myacpl.org 
> <mailto:oleonard at myacpl.org>> wrote:
>
>     > Patch pushed, but with reservations: suppressing the enter key
>     in all
>     > fields in the patron and item forms may be casting the net too wide;
>     > an operator who is used to hitting enter now has to reach for the
>     > mouse.
>
>     I'd welcome discussion on the question. It's just as easy to suppress
>     the enter key from only specific inputs. By consensus or decree it can
>     be so.
>
>
> My vote is for this patch to only affect fields that the scanner is 
> likely to be used for; barcode or cardnumber, maybe isbn. If it also 
> needs to affect additem, changes would have to happen to that script, 
> but it would be possible.
>
My vote is for  that to be added to barcodescanner.js file inserted 
wherever it would HAVE to be inserted and used via jquery.
Does that sound sane ?

-- 
Henri-Damien LAURENT
BibLibre SARL
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
tel : +33 4 67 65 75 50





More information about the Koha-patches mailing list