[FIX] reloading of menu should keep active menu hidden when folded
bzr revid: fme@openerp.com-20120131100324-xajoh1esyvj31zs0
This commit is contained in:
parent
b52e034c43
commit
d6f406191a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue