New: Add option MAIN_DISABLE_AJAX_COMBOX

This commit is contained in:
Laurent Destailleur 2014-02-03 19:47:35 +01:00
parent efcff80a28
commit 89ebb3c0ef

View File

@ -305,6 +305,7 @@ function ajax_combobox($htmlname, $event=array(), $minLengthToAutocomplete=0)
global $conf;
if (! empty($conf->browser->phone)) return ''; // combobox disabled for smartphones (does not works)
if (! empty($conf->global->MAIN_DISABLE_AJAX_COMBOX)) return '';
/* Some properties for combobox:
minLengthToAutocomplete: 2,