From ba543324076e82da4ba0dd3ffca9b0e895f1efb3 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 8 Sep 2020 14:19:22 +0200 Subject: [PATCH] style: get closer to pure JS script Signed-off-by: Thierry Bugier --- js/scripts.js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/scripts.js.php b/js/scripts.js.php index b9059594c..73156fcf0 100644 --- a/js/scripts.js.php +++ b/js/scripts.js.php @@ -915,7 +915,7 @@ function pluginFormcreatorInitializeField(fieldName, rand) { */ function pluginFormcreatorInitializeActor(fieldName, rand, initialValue) { var field = $('select[name="' + fieldName + '[]"]'); - dropdownMax = ; + var dropdownMax = CFG_GLPI['dropdown_max']; field.select2({ width: '80%', minimumInputLength: 0,