[Koha] jquery : barcode triggers submit

Chad Roseburg croseburg at ncrl.org
Wed Jul 23 09:20:14 NZST 2014


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

-- 
Chad Roseburg
Automation Dept.
North Central Regional Library


More information about the Koha mailing list