[Koha-bugs] [Bug 9507] Some code used to prevent form from being unexpectedly submitted is duplicated

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 22 14:02:41 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9507

--- Comment #10 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 18309
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18309&action=edit
Bug 9507: prevent submit: refactor some code in a js file

This patch refactors code in a js file.

Test plan:
On acqui/neworderempty.pl, acqui/orderreceive.pl and
serials/serials-edit.tt try to scan a barcode (or press enter) on the
form and check that it is not sent.

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Have to note that the code for IE9 does not work. Before and after this patch.
If we refactor code, it would have been nice to resolve this too.
But I do not oppose pushing this patch.
The test uses 'an ancient Netscape property' window.Event (uppercase!) to make
the distinction between browers and event models. Some more documentation here
would be welcome too.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list