Skip to content

Commit 95610ef

Browse files
committed
fix eCommerce search view for BS3
1 parent 305b482 commit 95610ef

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

framework/core/forms/controls/autocompletecontrol.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,21 @@ function controlToHTML($name,$label) {
8888
});
8989
"; // end JS
9090

91-
expCSS::pushToHead(array(
92-
"unique"=>"autocompletecontrol$name",
93-
"css"=>"
91+
if (bs4() || bs5()) {
92+
expCSS::pushToHead(array(
93+
"unique" => "autocompletecontrol$name",
94+
"css" => "
9495
.yui3-aclist {
9596
z-index: 99!important;
9697
overflow-x: auto;
9798
}
98-
#".$name."_autoc {
99-
width: " . $this->wwidth.";
99+
#" . $name . "_autoc {
100+
width: " . $this->wwidth . ";
100101
}
101102
"
102-
)
103-
);
103+
)
104+
);
105+
}
104106

105107
expJavascript::pushToFoot(array(
106108
"unique"=>'ac'.$name,

0 commit comments

Comments
 (0)