* Modify the selection box drop-down display.

This commit is contained in:
tianshujie
2023-03-29 17:23:10 +08:00
parent 028b893345
commit fcf2687316
3 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -171,7 +171,12 @@ class html extends baseHTML
$convertedPinYin = (empty($config->isINT) and class_exists('common')) ? common::convert2Pinyin($options) : array();
if(count($options) >= $config->maxCount or isset($config->moreLinks[$name]))
{
if(strpos($attrib, 'chosen') !== false) $attrib = str_replace('chosen', 'picker-select', $attrib);
if(strpos($attrib, 'chosen') !== false)
{
$attrib = str_replace('chosen', 'picker-select', $attrib);
$attrib = preg_replace('/data-drop[-_]?direction=([\'"]?)down([\'"]?)/i', 'data-drop-direction=$1bottom$2', $attrib);
$attrib = preg_replace('/data-drop[-_]?direction=([\'"]?)up([\'"]?)/i', 'data-drop-direction=$1top$2', $attrib);
}
if(isset($config->moreLinks[$name]))
{
$link = $config->moreLinks[$name];