Bug 29407: Make the pickup locations dropdown JS reusable
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 3 Nov 2021 15:22:24 +0000 (12:22 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 8 Nov 2021 10:42:07 +0000 (11:42 +0100)
commitd28f9342825ad399ac62d28810345b4bdaddb022
tree0027b3f6507afc0d625175efc273320a4924e7da
parent7af1a0f052ace730d6d6bd2a0de457a8901bc61c
Bug 29407: Make the pickup locations dropdown JS reusable

This patch generates a function to be used in places where select2
dropdowns are usesd for choosing pickup locations. This cleans
repeated/almost identical code introduced by different bugs.

To test:
1. Make sure choosing pickup locations works
2. Apply this patch
3. Repeat 1
=> SUCCESS: No functional changes
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/intranet-tmpl/prog/js/holds.js