Bug 25728: Don't explode if no CAN_* var defined
Sponsored-by: Orex Digital Signed-off-by: Hugo Agud <hagud@orex.es> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
d838a4a715
commit
e118b4b28a
|
|
@ -89,7 +89,7 @@ var Select2Utils = {
|
|||
|
||||
initSelect2: function(selects) {
|
||||
if ($.fn.select2) {
|
||||
if ( ! CAN_user_parameters_manage_auth_values ) {
|
||||
if ( window.CAN_user_parameters_manage_auth_values === undefined || ! CAN_user_parameters_manage_auth_values ) {
|
||||
$(selects).select2();
|
||||
} else {
|
||||
$(selects).select2({
|
||||
|
|
|
|||
Loading…
Reference in New Issue