Bug 18422: (QA follow-up) Check if select2 is available before using it
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 29 Sep 2017 13:52:50 +0000 (15:52 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 29 Sep 2017 19:49:48 +0000 (16:49 -0300)
commit56a0aabc58a3475912894523cc92757153b967bd
tree0bf52fcd934e66b3b07c906905e8f720fbe9cd19
parent2f5a319b0a9f93dde7600decae5df989b842ca58
Bug 18422: (QA follow-up) Check if select2 is available before using it

cataloging.js might not always be loaded with select2.js, so we should
check its availability to prevent JS errors

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/js/cataloging.js