summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome/web_client.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-07-02 16:49:41 +0200
committerqsm-odoo <qsm@odoo.com>2018-07-27 12:36:54 +0200
commit6dc37ee461c967bc2180fddaa0910007b4552054 (patch)
treec2b9bd05cfeaa538ef04be862926598b950bd823 /addons/web/static/src/js/chrome/web_client.js
parent76f714dca8957233ba3bbca73f340fa21244f5f2 (diff)
[REF] web, *: share and adapt code for auto "more" buttons for navbars
* portal, web_tour, website, base Before this commit, there were 3 different implementations for the same feature: the "more" button in the community navbar, the "+" button for the website menu and the "+" button in the enterprise navbar. As those implementation were now broken with BS4, it was a good time to share the code of those 3 features.
Diffstat (limited to 'addons/web/static/src/js/chrome/web_client.js')
-rw-r--r--addons/web/static/src/js/chrome/web_client.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome/web_client.js b/addons/web/static/src/js/chrome/web_client.js
index c4886cd0e89..d3ebabfab1e 100644
--- a/addons/web/static/src/js/chrome/web_client.js
+++ b/addons/web/static/src/js/chrome/web_client.js
@@ -3,6 +3,7 @@ odoo.define('web.WebClient', function (require) {
var AbstractWebClient = require('web.AbstractWebClient');
var config = require('web.config');
+var core = require('web.core');
var data_manager = require('web.data_manager');
var dom = require('web.dom');
var framework = require('web.framework');
@@ -48,6 +49,9 @@ return AbstractWebClient.extend({
return $.when(systray_menu_loaded, user_menu_loaded).then(function() {
self.menu.start();
self.bind_hashchange();
+ setTimeout(function () {
+ self.menu.$el.removeClass('d-none');
+ }, 200)
});
},
@@ -165,7 +169,7 @@ return AbstractWebClient.extend({
toggle_fullscreen: function(fullscreen) {
this._super(fullscreen);
if (!fullscreen) {
- this.menu.reflow();
+ core.bus.trigger('resize');
}
},