Lines 452-457
$("#placeBookingModal").on("show.bs.modal", function (e) {
Link Here
|
452 |
// Setup listener for pickup location select2 |
452 |
// Setup listener for pickup location select2 |
453 |
$("#pickup_library_id").on("select2:select", function (e) { |
453 |
$("#pickup_library_id").on("select2:select", function (e) { |
454 |
let valid_items = e.params.data.pickup_items; |
454 |
let valid_items = e.params.data.pickup_items; |
|
|
455 |
valid_items.push(0); |
455 |
|
456 |
|
456 |
// Disable items not available at the pickup location |
457 |
// Disable items not available at the pickup location |
457 |
$("#booking_item_id > option").each(function () { |
458 |
$("#booking_item_id > option").each(function () { |
458 |
- |
|
|