Add check for blur text left in

This commit is contained in:
Nathan Gray 2010-02-09 18:07:53 +00:00
parent b590c48a0b
commit 9bf462d616

View File

@ -253,6 +253,10 @@ class ajax_select_widget
if(!is_array($value_in)) {
$value_in = $extension_data['old_value'];
}
// Check for blur text left in
if($extension_data['options']['id_field'] == self::ARRAY_KEY && $value_in['search'] == lang('Search...') ) {
$value_in['search'] = '';
}
// They typed something in, but didn't choose a result
if(!$value_in['value'] && $value_in['search']) {