[FIX] reloading of menu should keep active menu hidden when folded

bzr revid: fme@openerp.com-20120131100324-xajoh1esyvj31zs0
This commit is contained in:
Fabien Meghazi 2012-01-31 11:03:24 +01:00
parent b52e034c43
commit d6f406191a
1 changed files with 1 additions and 1 deletions

View File

@ -919,7 +919,7 @@ openerp.web.Menu = openerp.web.OldWidget.extend(/** @lends openerp.web.Menu# */
}
$primary_menu.addClass('active');
this.$secondary_menu.find(
'div[data-menu-parent=' + $primary_menu.data('menu') + ']').show();
'div[data-menu-parent=' + $primary_menu.data('menu') + ']').addClass('active').toggle(!this.folded);
},
on_menu_click: function(ev, id) {
id = id || 0;