]> 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 15:53:19 +0000 (10:53 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 17 Feb 2012 18:22:49 +0000 (19:22 +0100)
commita64ca0a8cfbd70d9c924657a93d3f2dc84bf7704
tree2711a95c642b104eaf4f6ce7c109d507d5a91785
parent5610087eca463bcc494726ea82b8f3203fe9dba4
Bug 4054 - Double-clicking the 'place hold' button can result in duplicate holds

This commit adds a new jquery function to staff-global.js, preventDoubleFormSubmit().
When used thusly: $('#form-id').preventDoubleFormSubmit();
It will prevent a submitted form from being submitted a second time.
It is currently only added to the Place Hold form in reserve/request.pl

http://bugs.koha-community.org/show_bug.cgi?id=4045
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Tested:
Double clicking no longer causes identical double holds to be placed.
passes prove t xt t/db_dependent in line with current master.

Reminder: this will need to be added to the OPAC as well.
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt