]> git.koha-community.org Git - koha.git/commit
Bug 25727: Fix default values
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 13 Jun 2020 12:08:11 +0000 (14:08 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 09:19:03 +0000 (11:19 +0200)
commit529182aaf3d5992f79d8deac0971001129078bf9
treeda0621c196a18d5898a3b474c2242fe9d9a804c9
parent8683025c3c2ed4c78afb051f443d4ce0ea889489
Bug 25727: Fix default values

The way we defined the default values does not longer work (?)
Using
  $.fn.select2.defaults.set
instead of
  jQuery.extend($.fn.select2.defaults, {
fixes the problem.

It restores the allowClear setting.

There is a change in the behavior here, the selection opens when the
clear button is clicked. That is coming from a change in Select2
apparently. We may want to hack something to restore the precedent
behaviour.

This patch also removes the redefinition of the width. It seems that the
issue that this code was trying to correct is now fixed.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
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