From f4666d8384958b219bd6c082f44e13f7afa082d6 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Wed, 27 Apr 2022 14:21:00 +0800 Subject: [PATCH 1/2] * Fix bug #15677. --- module/execution/view/ajaxgetdropmenu.html.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/execution/view/ajaxgetdropmenu.html.php b/module/execution/view/ajaxgetdropmenu.html.php index e1e49ab7b9..3a17937a76 100644 --- a/module/execution/view/ajaxgetdropmenu.html.php +++ b/module/execution/view/ajaxgetdropmenu.html.php @@ -25,6 +25,7 @@ #closed {width: 90px; height: 25px; line-height: 25px; background-color: #ddd; color: #3c495c; text-align: center; margin-left: 15px; border-radius: 2px;} #gray-line {width: 230px;height: 1px; margin-left: 10px; margin-bottom:2px; background-color: #ddd;} +#dropMenu.has-search-text .hide-in-search {display: flex;} 0) { $('#closed').attr("hidden", false); @@ -189,6 +192,14 @@ $(function() $('#closed').attr("hidden", true); $('#gray-line').attr("hidden", true); } + + var listItem = $(this).find('.has-list'); + listItem.each(function (){ + $(this).css('display','') + var $hidden = $(this).find('.hidden'); + var $item = $(this).find('.search-list-item'); + if($hidden.length == $item.length) $(this).css('display','none'); + }); }); }) From c781eadd944d3e8f25a2847c54113e613c8ffda0 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Wed, 27 Apr 2022 17:28:08 +0800 Subject: [PATCH 2/2] * Fix bug. --- module/execution/view/ajaxgetdropmenu.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/view/ajaxgetdropmenu.html.php b/module/execution/view/ajaxgetdropmenu.html.php index 3a17937a76..5d014e6ce1 100644 --- a/module/execution/view/ajaxgetdropmenu.html.php +++ b/module/execution/view/ajaxgetdropmenu.html.php @@ -164,7 +164,6 @@ $(function() { $('div.hide-in-search').siblings('i').addClass('hide-in-search'); $('.nav-tabs li span').hide(); - } else { @@ -194,7 +193,8 @@ $(function() } var listItem = $(this).find('.has-list'); - listItem.each(function (){ + listItem.each(function () + { $(this).css('display','') var $hidden = $(this).find('.hidden'); var $item = $(this).find('.search-list-item');