[framework] [cleanup] desktop, todo, messages, modules setup moved to framework

This commit is contained in:
Rushabh Mehta
2013-04-03 15:21:44 +05:30
parent 85adc07b5a
commit 27c4079ff9
27 changed files with 116 additions and 980 deletions

View File

@@ -74,12 +74,11 @@ erpnext.toolbar.add_modules = function() {
}
// add to dropdown
for(var i in modules_list) {
var m = modules_list[i]
if(m!='Setup' && wn.boot.profile.allow_modules.indexOf(m)!=-1 && wn.modules[m]) {
$.each(modules_list,function(i, m) {
if(m!='Setup') {
$('.navbar .modules').append(_get_list_item(m));
}
}
})
// setup for system manager
if(user_roles.indexOf("System Manager")!=-1) {