]> git.koha-community.org Git - koha.git/commit
Bug 9507: prevent submit: refactor some code in a js file
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 30 Jan 2013 14:19:58 +0000 (15:19 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 22 May 2013 14:49:15 +0000 (07:49 -0700)
commit9e4c289d3f68aaab5d47172940e30fba0819804e
treeb8c273d94568af9c2c9936ef8d9f7f543e8da444
parent1c3dd427fa26e4f84d14a81453e12b868936a3bf
Bug 9507: prevent submit: refactor some code in a js file

This patch refactors some 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@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@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.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/js/prevent_submit.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt