Cosmetic & bug fix for SELECT_BOX

This commit is contained in:
Dany De Bontridder 2019-08-07 15:23:48 +02:00
parent 76ad5d7780
commit 282c53ef90
2 changed files with 4 additions and 3 deletions

View file

@ -983,10 +983,11 @@ class HtmlInput
static function filter_list($p_list_id)
{
$r="<span>";
$r.='<span class=" icon">&#xf50d;</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;
}

View file

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