Fix search button.

1.10.x
Julio Montoya 11 years ago
parent 261074d535
commit c4be31c01b
  1. 4
      main/admin/user_list.php
  2. 2
      main/inc/lib/formvalidator/FormValidator.class.php
  3. 2
      main/inc/lib/pear/HTML/QuickForm/button.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',

@ -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');
}
/**

@ -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;
}

Loading…
Cancel
Save