[FIX] web_responsive: Close AppDrawer

pull/2405/head
Alexandre Díaz 2019-06-20 17:06:26 +02:00 committed by anjeel.haria
parent 1a05004294
commit 0cb1e72d23
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
{
"name": "Web Responsive",
"summary": "Responsive web client, community-supported",
"version": "12.0.1.1.0",
"version": "12.0.1.1.1",
"category": "Website",
"website": "https://github.com/OCA/web",
"author": "LasLabs, Tecnativa, Alexandre Díaz, "

View File

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