From 1088554b40640ba3e81d25e19bfe49607a92c28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 26 Apr 2013 09:56:50 +0200 Subject: [PATCH] [REV] Removed code changed not related to this branch. bzr revid: tde@openerp.com-20130426075650-jxzw3h52idj2zp7y --- addons/web/static/src/js/chrome.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 69c26049a2e..e6870b82629 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -885,14 +885,15 @@ instance.web.Menu = instance.web.Widget.extend({ }); }, menu_loaded: function(data) { + var self = this; this.data = {data: data}; this.renderElement(); this.$secondary_menus.html(QWeb.render("Menu.secondary", { widget : this })); this.$el.on('click', 'a[data-menu]', this.on_top_menu_click); // Hide second level submenus this.$secondary_menus.find('.oe_menu_toggler').siblings('.oe_secondary_submenu').hide(); - if (this.current_menu) { - this.open_menu(this.current_menu); + if (self.current_menu) { + self.open_menu(self.current_menu); } this.trigger('menu_loaded', data); this.has_been_loaded.resolve();