diff --git a/module/execution/view/ajaxgetdropmenu.html.php b/module/execution/view/ajaxgetdropmenu.html.php index e1e49ab7b9..5d014e6ce1 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 +191,15 @@ $(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'); + }); }); })