diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-07-02 11:56:42 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-07-02 11:56:42 +0200 |
| commit | d14a765d10de4d6a105cae271db5b4e94ace4d97 (patch) | |
| tree | c32c715d4af7c78d188c1f5f461f07b86a643e2c /addons/web/static/src/js | |
| parent | 2571ad25eb21c7c8b8f766edb5ceb171d140afda (diff) | |
[FIX] Fix secondary menu bug
bzr revid: fme@openerp.com-20120702095642-dr8mj2p1l5hob0p7
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 6bfded7cdb6..031dc6cf9a5 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) { |
