Fix toggle state when there are no hidden members
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user