mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(MVC) hide empty menu options
This commit is contained in:
parent
5062fb2843
commit
66d7c5e822
@ -44,6 +44,13 @@
|
||||
$("a[class='showhelp']").click(function () {
|
||||
$("*[for='" + $(this).attr('id') + "']").toggleClass("hidden show");
|
||||
});
|
||||
|
||||
// hide empty menu items
|
||||
$('#mainmenu > div > .collapse').each(function(){
|
||||
if ($(this).children().length == 0) {
|
||||
$("#mainmenu").find('[href="#'+$(this).attr('id')+'"]').remove();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user