hide module section if no items
This commit is contained in:
parent
578a29c563
commit
7b60f7b71b
1 changed files with 4 additions and 1 deletions
|
|
@ -116,7 +116,10 @@ wn.views.moduleview.ModuleView = Class.extend({
|
|||
if((item.country && wn.boot.control_panel.country==item.country)
|
||||
|| !item.country)
|
||||
me.add_item(item, section)
|
||||
})
|
||||
});
|
||||
if(section.table.find("tr").length==1) {
|
||||
section.table.toggle(false);
|
||||
}
|
||||
});
|
||||
},
|
||||
render_dynamic: function() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue