Fixed date_picker caching in debug mode
[fa-stable.git] / includes / ui / ui_lists.inc
index 864c486afcfa79938e85054f6c4870b448b99640..86968c9fbe644a6c13336ae6dc7a082fb5902af2 100644 (file)
@@ -6,10 +6,10 @@ include_once($path_to_root . "/includes/types.inc");
 include_once($path_to_root . "/includes/current_user.inc");
 
 $_search_button = "<input %s type='submit' class='combo_submit' style='border:0;background:url($path_to_root/themes/"
-       ."%s/images/locate.png) no-repeat;%s' fallback='1' name='%s' value=' ' title='"._("Set filter")."'> ";
+       ."%s/images/locate.png) no-repeat;%s' aspect='fallback' name='%s' value=' ' title='"._("Set filter")."'> ";
 
 $_select_button = "<input %s type='submit' class='combo_select' style='border:0;background:url($path_to_root/themes/"
-       ."%s/images/button_ok.png) no-repeat;%s' fallback='1' name='%s' value=' ' title='"._("Select")."'> ";
+       ."%s/images/button_ok.png) no-repeat;%s' aspect='fallback' name='%s' value=' ' title='"._("Select")."'> ";
 
 $all_items = reserved_words::get_all();
 
@@ -72,7 +72,7 @@ $opts = array(                // default options
                        '' : _('Press Space tab for search pattern entry');
 
        if ($opts['box_hint'] === null)
-               $opts['box_hint'] = $search_box ?
+               $opts['box_hint'] = $search_box && $search_submit != false ?
                        ($by_id ? _('Enter code fragment to search or * for all')
                        : _('Enter description fragment to search or * for all')) :'';
 
@@ -1427,10 +1427,7 @@ function bank_account_types_list($name, $selected_id=null)
        $items = array();
        foreach ($types as $type)
        {
-               if (payment_person_types::has_items($type['id']))
-               {
                        $items[$type['id']] = $type['name'];
-               }
        }
        
        return array_selector($name, $selected_id, $items );