forked from Techsystech/web
[FIX] simplify code
parent
32927dd164
commit
ffb3586582
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue