From: Fabien Meghazi Date: Mon, 2 Jul 2012 09:56:42 +0000 (+0200) Subject: [FIX] Fix secondary menu bug X-Git-Tag: 7.0-server~893^2~61 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=d14a765d10de4d6a105cae271db5b4e94ace4d97;hp=2571ad25eb21c7c8b8f766edb5ceb171d140afda;p=odoo%2Fodoo.git [FIX] Fix secondary menu bug bzr revid: fme@openerp.com-20120702095642-dr8mj2p1l5hob0p7 --- diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 6bfded7..031dc6c 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -579,6 +579,7 @@ instance.web.Menu = instance.web.Widget.extend({ start: function() { this._super.apply(this, arguments); this.$secondary_menus = this.getParent().$element.find('.oe_secondary_menus_container'); + this.$secondary_menus.on('click', 'a[data-menu]', this.on_menu_click); return this.do_reload(); }, do_reload: function() { @@ -591,7 +592,6 @@ instance.web.Menu = instance.web.Widget.extend({ this.limit_entries(); this.$secondary_menus.html(QWeb.render("Menu.secondary", { widget : this })); this.$element.on('click', 'a[data-menu]', this.on_menu_click); - this.$secondary_menus.on('click', 'a[data-menu]', this.on_menu_click); // Hide second level submenus this.$secondary_menus.find('.oe_menu_toggler').siblings('.oe_secondary_submenu').hide(); if (self.current_menu) {