[Koha] jquery : barcode triggers submit

Fridolin SOMERS fridolin.somers at biblibre.com
Wed Jul 23 18:17:34 NZST 2014


Hie,

This behavior is added by the JS code :
   $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");

A better solution is to remove this class :
   $("tag_952_subfield_p_971027").removeClass("noEnterSubmit");

Le 22/07/2014 23:20, Chad Roseburg a écrit :
> Our cataloging department liked the short-lived behavior in 3.14 where
> scanning barcodes would submit forms [ no one else did ]. I decided to try
> and reintroduce that for the cataloging module only -- testing using
> greasemonkey.
>
> Here's what I've got so far [ doesn't work ]:
> $('tag_952_subfield_p_971027').keypress(function(e) {
>      if ( e.which == 13 ) {
>          $( "input[value='Save changes']").trigger('click');
>      }
> });
>
> Any ideas?
>
> Thanks!
>
> Chad
>

-- 
Fridolin SOMERS
Biblibre - Pôles support et système
fridolin.somers at biblibre.com


More information about the Koha mailing list