Bug 29002: Properly reset item in form

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com>
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-09-29 14:23:25 +01:00 committed by Tomas Cohen Arazi
parent c067e17640
commit 927967d924
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -487,7 +487,7 @@ $("#placeBookingForm").on('submit', function(e) {
$('#placeBookingModal').on('hidden.bs.modal', function (e) { $('#placeBookingModal').on('hidden.bs.modal', function (e) {
$('#booking_patron_id').val(null).trigger('change'); $('#booking_patron_id').val(null).trigger('change');
$('#booking_item_id').val(null).trigger('change'); $('#booking_item_id').val(0).trigger('change');
$("#period").get(0)._flatpickr.clear(); $("#period").get(0)._flatpickr.clear();
$('#booking_start_date').val(''); $('#booking_start_date').val('');
$('#booking_end_date').val(''); $('#booking_end_date').val('');