|
@ -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) |
|
|