mirror of https://github.com/OCA/web.git
commit
9638ae9ce3
|
@ -442,6 +442,7 @@ odoo.define('web_responsive', function (require) {
|
||||||
* The executed action
|
* The executed action
|
||||||
*/
|
*/
|
||||||
_hideMenusByAction: function (action) {
|
_hideMenusByAction: function (action) {
|
||||||
|
_.defer(function () {
|
||||||
var uniq_sel = '[data-action-id='+action.id+']';
|
var uniq_sel = '[data-action-id='+action.id+']';
|
||||||
// Need close AppDrawer?
|
// Need close AppDrawer?
|
||||||
var menu_apps_dropdown = document.querySelector(
|
var menu_apps_dropdown = document.querySelector(
|
||||||
|
@ -458,6 +459,7 @@ odoo.define('web_responsive', function (require) {
|
||||||
var menu_sections_mobile = document.querySelector(
|
var menu_sections_mobile = document.querySelector(
|
||||||
'.o_menu_sections.show');
|
'.o_menu_sections.show');
|
||||||
$(menu_sections_mobile).has(uniq_sel).collapse('hide');
|
$(menu_sections_mobile).has(uniq_sel).collapse('hide');
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_handleAction: function (action) {
|
_handleAction: function (action) {
|
||||||
|
|
Loading…
Reference in New Issue