Bug 26136: Prevent double submit on checkin-form
To test:
1 - Browse to Circulation->Check-in
2 - Type a barcode into the Check in box
3 - Hit Enter as many as times as you can
4 - Check the statistics table:
SELECT * FROM statistics WHERE itemnumber={itemnumber} AND DATE(datetime)=CURDATE();
5 - Note you have multiple lines for the same item at the same time
6 - Apply patch
7 - Reload the page
8 - Type the barcode
9 - Press Enter even more fast and more furiously
10 - Check the statistics table
11 - Only one entry, huzzah!
Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 44f54aac60)
(cherry picked from commit 9d85636bf0)
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
This commit is contained in:
parent
d3b130d1ab
commit
90fdf1fa07
|
|
@ -917,6 +917,7 @@
|
|||
$("#barcode").focus();
|
||||
}
|
||||
$(document).ready(function () {
|
||||
$("#checkin-form").preventDoubleFormSubmit();
|
||||
$(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
|
||||
$("#barcode").prop("disabled", true);
|
||||
$(".show_checkin_dialog").show();
|
||||
|
|
|
|||
Loading…
Reference in New Issue