[Koha-bugs] [Bug 14011] Triggering slip print with enter key collides with 'barcode submitted' message
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 20 14:51:30 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14011
--- Comment #4 from Marc Véron <veron at veron.ch> ---
Hi Jonathan,
Add following alerts after line 66 in circulation.tt:
$(document).ready(function() {
$('#mainform').on('submit',function() {
alert(barcode);
alert(barcode.value);
$('#barcode').on('keypress',function(event) {
$('#barcodeSubmittedModal').modal();
event.preventDefault(); }
);
});
(...)
...and then do checkout with a barcode e.g. 123456789
Result: With the first alert you will get [object HTMLInputELement] and with
the second the barcode 123456789
While testing I detected errors because there seem to be cases where the object
barcode does not (yet?) exist. That's why I test first for the existence of
barcode and then for it's value.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list