From a21acdeb7c44c798d3f4b81911e462fa10047755 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 7 Feb 2015 03:41:09 +0100 Subject: [PATCH] Enable select2 for users combo --- htdocs/core/class/html.form.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 21650cd62f6..fdb02e041fc 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1229,13 +1229,13 @@ class Form { // Enhance with select2 $nodatarole=''; - /*if ($conf->use_javascript_ajax) + if ($conf->use_javascript_ajax) { - include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php'; + include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php'; $comboenhancement = ajax_combobox($htmlname); - $out.= $comboenhancement; - $nodatarole=($comboenhancement?' data-role="none"':''); - }*/ + $out.=$comboenhancement; + $nodatarole=($comboenhancement?' data-role="none"':''); + } $out.= '