[FIX] web: scroll should move top on clicking menu on top bar

Backported from 97d99d1974c965506ed9005d4854fcc5ffee0590
This commit is contained in:
Ronak Baxi 2014-08-27 15:25:20 +05:30 committed by Richard Mathot
parent 7c0387c952
commit 1db9915891
1 changed files with 1 additions and 0 deletions

View File

@ -993,6 +993,7 @@ instance.web.Menu = instance.web.Widget.extend({
self.do_load_needaction(menu_ids).then(function () {
self.trigger("need_action_reloaded");
});
this.$el.parents().find(".oe_secondary_menus_container").scrollTop(0,0);
this.on_menu_click(ev);
},