一级菜单点击收起
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -62,16 +62,16 @@ function makeMenus(env, menusData, fetchLoadMenus) {
|
||||
return menusData[menuID];
|
||||
},
|
||||
getCurrentApp() {
|
||||
if (!currentAppId) {
|
||||
return;
|
||||
}
|
||||
var target_tag = '.o_navbar_apps_menu a.main_link[data-menu='+currentAppId+']'
|
||||
$(target_tag).addClass('active');
|
||||
if($(target_tag).hasClass('dropdown-btn')){
|
||||
var ultag = $(target_tag).parent().find('.header-sub-menus')
|
||||
$(ultag).addClass('show');
|
||||
}
|
||||
return this.getMenu(currentAppId);
|
||||
// if (!currentAppId) {
|
||||
// return;
|
||||
// }
|
||||
// var target_tag = '.o_navbar_apps_menu a.main_link[data-menu='+currentAppId+']'
|
||||
// $(target_tag).addClass('active');
|
||||
// if($(target_tag).hasClass('dropdown-btn')){
|
||||
// var ultag = $(target_tag).parent().find('.header-sub-menus')
|
||||
// $(ultag).addClass('show');
|
||||
// }
|
||||
// return this.getMenu(currentAppId);
|
||||
},
|
||||
getMenuAsTree(menuID) {
|
||||
const menu = this.getMenu(menuID);
|
||||
|
||||
Reference in New Issue
Block a user