Search forms enhancement: when a search criteria is an external (foreign) key, use an autocomplete instead of of drop-down list, when the number of different values is too big, as in other forms.

SVN:trunk[1123]
This commit is contained in:
Denis Flaven
2011-03-09 16:39:58 +00:00
parent 692f7060ea
commit bca713a964
6 changed files with 68 additions and 14 deletions

View File

@@ -125,7 +125,7 @@ class Config
'show_in_conf_sample' => true,
),
'max_combo_length' => array(
'type' => 'int',
'type' => 'integer',
'description' => 'The maximum number of elements in a drop-down list. If more then an autocomplete will be used',
'default' => 50,
'value' => 50,
@@ -133,7 +133,7 @@ class Config
'show_in_conf_sample' => false,
),
'min_autocomplete_chars' => array(
'type' => 'int',
'type' => 'integer',
'description' => 'The minimum number of characters to type in order to trigger the "autocomplete" behavior',
'default' => 3,
'value' => 3,