Merge pull request #10882 from MoonE/apidoc-fix-toggle-state

Apidoc - Fix toggle state when there are no hidden members
This commit is contained in:
Tim Schaub
2020-04-06 10:30:17 -06:00
committed by GitHub
@@ -233,18 +233,8 @@ $(function () {
return; return;
} }
const clsItem = $(this).closest('.item'); const clsItem = $(this).closest('.item');
let show; const show = !clsItem.hasClass('toggle-manual-show');
if (clsItem.hasClass('toggle-manual-show')) { search.manualToggle(clsItem, show);
show = false;
} else if (clsItem.hasClass('toggle-manual-hide')) {
show = true;
} else {
clsItem.find('.member-list li').each(function (i, v) {
show = $(v).is(':hidden');
return !show;
});
}
search.manualToggle(clsItem, !!show);
}); });
// Auto resizing on navigation // Auto resizing on navigation