3
0
Fork 0

[FIX] web_responsive: Close AppDrawer

12.0
Alexandre Díaz 2019-06-20 17:06:26 +02:00 committed by OCA-git-bot
parent 4c9a89ab73
commit c5c59470c6
1 changed files with 3 additions and 2 deletions

View File

@ -396,8 +396,9 @@ odoo.define('web_responsive', function (require) {
_hideMenusByAction: function (action) { _hideMenusByAction: function (action) {
var uniq_sel = '[data-action-id='+action.id+']'; var uniq_sel = '[data-action-id='+action.id+']';
// Need close AppDrawer? // Need close AppDrawer?
$(_.str.sprintf('.o_menu_apps .dropdown.show:has(%s)', uniq_sel)) $(_.str.sprintf(
.dropdown('toggle'); '.o_menu_apps .dropdown:has(.dropdown-menu.show:has(%s)) > a',
uniq_sel)).dropdown('toggle');
// Need close Sections Menu? // Need close Sections Menu?
// TODO: Change to 'hide' in modern Bootstrap >4.1 // TODO: Change to 'hide' in modern Bootstrap >4.1
$(_.str.sprintf( $(_.str.sprintf(