Bug 27864: Correct dropdown size

This patch makes the dropdown width inherit the existing style.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Tomás Cohen Arazi 2021-03-15 11:36:04 -03:00 committed by Jonathan Druart
parent fd5e603c3d
commit 1531607233

View file

@ -1244,6 +1244,7 @@
var biblio_id = $(this).data('biblio-id');
this_dropdown.select2({
width: 'style',
allowClear: false,
ajax: {
url: '/api/v1/biblios/' + encodeURIComponent(biblio_id) + '/pickup_locations',