mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] simplify code
This commit is contained in:
@@ -145,10 +145,8 @@ openerp.web_menu_autohide = function(instance)
|
||||
.parents(this.navbar_query).length > 0,
|
||||
on_left_bar = jQuery(e.target)
|
||||
.parents(this.leftbar_query).length > 0;
|
||||
if(!on_left_bar && !on_main_menu && openerp.client.leftbar_hide_timeout_id)
|
||||
if(!on_left_bar && !on_main_menu)
|
||||
{
|
||||
clearTimeout(openerp.client.leftbar_hide_timeout_id);
|
||||
openerp.client.leftbar_hide_timeout_id = null;
|
||||
this.toggle_left_bar(false);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user