noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 73/107: Cosmetic & bug fix for SELECT_BOX


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 73/107: Cosmetic & bug fix for SELECT_BOX
Date: Mon, 26 Aug 2019 10:32:04 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 282c53ef9064d85d8a6ca7f471e4d4411cdc3256
Author: Dany De Bontridder <address@hidden>
Date:   Wed Aug 7 15:23:48 2019 +0200

    Cosmetic & bug fix for SELECT_BOX
---
 include/lib/html_input.class.php | 3 ++-
 include/lib/select_box.class.php | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 41c1183..421861c 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -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;
     }
diff --git a/include/lib/select_box.class.php b/include/lib/select_box.class.php
index c2eb361..82c5547 100644
--- a/include/lib/select_box.class.php
+++ b/include/lib/select_box.class.php
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]