Bug 25727: Default to dropdownAutoWidth
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 17 Aug 2020 14:39:43 +0000 (14:39 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 09:19:03 +0000 (11:19 +0200)
This will set a correct width by default.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc

index 4d0aed8..d89b21f 100644 (file)
@@ -7,6 +7,7 @@
 <script>
   $.fn.select2.defaults.set("allowClear", true);
   $.fn.select2.defaults.set("placeholder", "");
+  $.fn.select2.defaults.set("dropdownAutoWidth", true);
 
   // Internationalization
   $.fn.select2.defaults.set("language", {