Re: [Koha] jquery : barcode triggers submit

2014-07-23 Thread Jared Camins-Esakov
Chad, > A better solution is to remove this class : > $("tag_952_subfield_p_971027").removeClass("noEnterSubmit"); And, of course, you will need a valid selector. 971027 is a random number, and the "tag_952..." is an id and not a tag name. Something like $('input[id^="tag_952_subfield_p"]') mig

Re: [Koha] jquery : barcode triggers submit

2014-07-22 Thread Fridolin SOMERS
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 depart

[Koha] jquery : barcode triggers submit

2014-07-22 Thread Chad Roseburg
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_9