[CHG] Menu doesn't fold by default

bzr revid: fme@openerp.com-20120227135911-9l0csum251wvkfv8
This commit is contained in:
Fabien Meghazi
2012-02-27 14:59:11 +01:00
parent e91dee1e97
commit ad681179d0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -791,7 +791,7 @@ openerp.web.Menu = openerp.web.Widget.extend(/** @lends openerp.web.Menu# */{
if ($clicked_menu.is('.submenu')) {
$sub_menu.find('.submenu.opened').each(function() {
if (!$(this).next().has($clicked_menu).length && !$(this).is($clicked_menu)) {
$(this).removeClass('opened').next().hide();
$(this).removeClass('opened');
}
});
$clicked_menu.toggleClass('opened').next().toggle();
+1 -1
View File
@@ -364,7 +364,7 @@
t-att-data-menu="menu.children.length ? undefined : menu.id">
<span t-attf-style="padding-left: #{(level - 2) * 20}px"> <t t-esc="menu.name"/></span>
</a>
<div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="menu_first and level == 1 ? undefined : 'display: none'">
<div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="level == 1 ? undefined : 'display: none'">
<t t-foreach="menu.children" t-as="menu">
<t t-set="classname" t-translation="off">oe_secondary_submenu_item</t>
<t t-call="Menu.secondary.children"/>