Browse Source

[FIX] timing issue with static main menu

pull/131/head
Holger Brunn 10 years ago
parent
commit
19e0c9759a
  1. 9
      web_menu_autohide/static/src/js/web_menu_autohide.js

9
web_menu_autohide/static/src/js/web_menu_autohide.js

@ -32,11 +32,8 @@ openerp.web_menu_autohide = function(instance)
leftbar_query: '.oe_leftbar', leftbar_query: '.oe_leftbar',
start: function() 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( parameters = _.map(
['show_bar_threshold_navbar', 'hide_delay_navbar', ['show_bar_threshold_navbar', 'hide_delay_navbar',
'show_bar_threshold_leftbar', 'hide_delay_leftbar', 'show_bar_threshold_leftbar', 'hide_delay_leftbar',
@ -53,8 +50,8 @@ openerp.web_menu_autohide = function(instance)
self[param.key.replace(addon_name + '.', '')] = self[param.key.replace(addon_name + '.', '')] =
parseInt(param.value); parseInt(param.value);
}); });
});
}) })
.then(this.proxy(this._super))
.then(function() .then(function()
{ {
if(self.hide_delay_navbar) if(self.hide_delay_navbar)

Loading…
Cancel
Save