mirror of https://github.com/OCA/web.git
[FIX] timing issue with static main menu
parent
9a74ec4ec6
commit
19e0c9759a
|
@ -32,11 +32,8 @@ openerp.web_menu_autohide = function(instance)
|
|||
leftbar_query: '.oe_leftbar',
|
||||
start: function()
|
||||
{
|
||||
var self = this;
|
||||
return this._super.apply(this, arguments)
|
||||
.then(function()
|
||||
{
|
||||
var addon_name = 'web_menu_autohide',
|
||||
var self = this,
|
||||
addon_name = 'web_menu_autohide',
|
||||
parameters = _.map(
|
||||
['show_bar_threshold_navbar', 'hide_delay_navbar',
|
||||
'show_bar_threshold_leftbar', 'hide_delay_leftbar',
|
||||
|
@ -53,8 +50,8 @@ openerp.web_menu_autohide = function(instance)
|
|||
self[param.key.replace(addon_name + '.', '')] =
|
||||
parseInt(param.value);
|
||||
});
|
||||
});
|
||||
})
|
||||
.then(this.proxy(this._super))
|
||||
.then(function()
|
||||
{
|
||||
if(self.hide_delay_navbar)
|
||||
|
|
Loading…
Reference in New Issue