hide module section if no items

This commit is contained in:
Rushabh Mehta 2013-02-05 11:58:22 +05:30
parent 578a29c563
commit 7b60f7b71b

View file

@ -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() {