noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 95/119: fix : select_box search doesn't work


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 95/119: fix : select_box search doesn't work
Date: Mon, 26 Oct 2020 18:27:34 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit da861b5e6a5ae443ea3225ac829b5fe9a1f8c89a
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Oct 13 13:12:50 2020 +0200

    fix : select_box search doesn't work
---
 include/lib/select_box.class.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/lib/select_box.class.php b/include/lib/select_box.class.php
index 396d416..8d3ccea 100644
--- a/include/lib/select_box.class.php
+++ b/include/lib/select_box.class.php
@@ -107,22 +107,22 @@ class Select_Box
                         try {
                           
                             
-                            if (! 
document.getElementById("select_box_content") ) {
+                            if (! document.getElementById("select_box%s") ) {
                             
                                 var newDiv=new Element("div");
-                                newDiv.id="select_box_content";
+                                newDiv.id="select%s";
                                 document.body.appendChild(newDiv);
                                 newDiv.addClassName("select_box");
-                                
$("select_box_content").onmouseleave=function() {
+                                $("select_box%s").onmouseleave=function() {
                                         try {
-                                           var newDiv=$("select_box_content");
+                                           var newDiv=$("select_box%s");
                                            newDiv.setStyle({display:"none"});
                                         } catch(e) {
                                              alert(e.message);
                                         }
                                        }
                             } else {
-                                 var 
newDiv=document.getElementById("select_box_content");
+                                 var 
newDiv=document.getElementById("select_box%s");
                             }
                             newDiv.innerHTML=$("select_box%s").innerHTML;
                             var pos=$("%s_bt").cumulativeOffset();
@@ -137,7 +137,7 @@ class Select_Box
                              alert(e.message);
                         }
                        }
-                        ', $this->id, $this->id, $this->id, $list_id, 
$list_id);
+                        ', $this->id,$this->id,$this->id,$this->id,$this->id, 
$this->id, $this->id, $this->id,$list_id, $list_id);
                
                         break;
             



reply via email to

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