Cosmetic & bug fix for SELECT_BOX
This commit is contained in:
parent
76ad5d7780
commit
282c53ef90
2 changed files with 4 additions and 3 deletions
|
|
@ -983,10 +983,11 @@ class HtmlInput
|
|||
static function filter_list($p_list_id)
|
||||
{
|
||||
$r="<span>";
|
||||
$r.='<span class=" icon"></span>';
|
||||
$r.=sprintf('<input id="search_%s" type="TEXT" class="input_text" name="filter_list%s" onkeyup="filter_list(this,\'%s\')">',
|
||||
$p_list_id,$p_list_id,$p_list_id);
|
||||
|
||||
$r.=sprintf('<input type="button" class="smallbutton" onclick="$(\'search_%s\').value=\'\';filter_list(this,\'%s\')">',$p_list_id,$p_list_id);
|
||||
$r.=sprintf('<input type="button" class="smallbutton" onclick="$(\'search_%s\').value=\'\';filter_list(\'search_%s\',\'%s\')" value="x">',$p_list_id,$p_list_id,$p_list_id);
|
||||
$r.='</span>';
|
||||
return $r;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@ class Select_Box
|
|||
|
||||
// Show the filter if there is one,
|
||||
if ( $this->filter != "" ) {
|
||||
echo $this->filter;
|
||||
echo HtmlInput::filter_list($list_id);
|
||||
|
||||
echo HtmlInput::filter_list($list_id);
|
||||
}
|
||||
|
||||
// Print the list of possible options
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue