Browse Source

Fix search button.

Julio Montoya 10 years ago
parent
commit
c4be31c01b

+ 1 - 3
main/admin/user_list.php

@@ -799,9 +799,7 @@ if (!empty($action)) {
 
 // Create a search-box
 $form = new FormValidator('search_simple', 'get', '', '', array(), FormValidator::LAYOUT_INLINE);
-$renderer = & $form->defaultRenderer();
-$renderer->setElementTemplate('<span>{element}</span> ');
-$form->addElement('text','keyword', get_lang('keyword'));
+$form->addElement('text', 'keyword', get_lang('keyword'));
 $form->addButtonSearch(get_lang('Search'));
 $form->addElement(
     'static',

+ 1 - 1
main/inc/lib/formvalidator/FormValidator.class.php

@@ -364,7 +364,7 @@ EOT;
         if (empty($label))  {
             $label = get_lang('Search');
         }
-        return $this->addButton('submit', $label, 'search');
+        return $this->addButton('submit', $label, 'search', 'default');
     }
 
     /**

+ 1 - 1
main/inc/lib/pear/HTML/QuickForm/button.php

@@ -150,7 +150,7 @@ class HTML_QuickForm_button extends HTML_QuickForm_input
      */
     public function setStyle($style)
     {
-        $style = !empty($style) ? 'btn-'.$style : null;
+        $style = !empty($style) ? 'btn btn-'.$style : null;
         $this->style = $style;
     }