From da861b5e6a5ae443ea3225ac829b5fe9a1f8c89a Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 13 Oct 2020 13:12:50 +0200 Subject: [PATCH] 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 396d416f9..8d3cceac7 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;