]> git.koha-community.org Git - koha.git/commit
Bug 4054 - Double-clicking the 'place hold' button can result in duplicate holds...
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 14 Feb 2012 18:49:54 +0000 (13:49 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 17 Feb 2012 18:22:52 +0000 (19:22 +0100)
commit945b39e01bbd736d6bffd53119347f7655a19874
treef7da918fb988b99119e047d684cd8632a4991ad7
parenta64ca0a8cfbd70d9c924657a93d3f2dc84bf7704
Bug 4054 - Double-clicking the 'place hold' button can result in duplicate holds - Part 2: OPAC

This commit adds a new jquery function to functions.js, preventDoubleFormSubmit().
When used thusly: $('#form-id').preventDoubleFormSubmit();
It will prevent a submitted form from being submitted a second time.
This commit uses said function to prevent double processing a hold
request from the opac.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Rapid clicking on the place hold button no longer causes duplicate holds!
Passes prove t xt t/db_dependent in line with current master.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/opac-tmpl/prog/en/js/script.js
koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt