[Koha-bugs] [Bug 4054] Double-clicking the 'place hold' button can result in duplicate holds
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 8 22:05:03 CET 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4054
Maxime Pelletier <pelletiermaxime at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Pushed to Master |In Discussion
CC| |pelletiermaxime at gmail.com
--- Comment #11 from Maxime Pelletier <pelletiermaxime at gmail.com> ---
I just ran in a problem with this new function preventDoubleFormSubmit(). If
you place a hold and you have an error in the function check() then you won't
be able to submit the form.
The only idea I have to fix this is to add a setTimeout :
setTimeout(function(){$('#hold-request-form')[0].beenSubmitted = false;}, 2000)
after "this.beenSubmitted = true;" in preventDoubleFormSubmit(). This way you
can submit the form again in 2 seconds.
Anyone has a better idea ? If not I will send a patch.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list