From 7c751e92436c9546fb01d71ea142322efd268cda Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Thu, 12 Feb 2015 11:39:53 +0100 Subject: [PATCH] [FIX] web: insert notification container into the .openerp container During the refactoring of the web client, the self.$el has been changed from .openerp to body, so the notification was no more into the .openerp container. Custom css (eg .highlight) was no more applicated. --- addons/web/static/src/js/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index b18debb1d96..fc40b1e7bf2 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1172,7 +1172,7 @@ instance.web.Client = instance.web.Widget.extend({ this.crashmanager = new instance.web.CrashManager(); instance.session.on('error', this.crashmanager, this.crashmanager.rpc_error); self.notification = new instance.web.Notification(this); - self.notification.appendTo(self.$el); + self.notification.appendTo(self.$el.find('.openerp')); self.loading = new instance.web.Loading(self); self.loading.appendTo(self.$('.openerp_webclient_container')); self.action_manager = new instance.web.ActionManager(self);