summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-01-27 17:43:32 +0100
committerXavier Morel <xmo@openerp.com>2012-01-27 17:43:32 +0100
commit05b60e8afb83df4d94f8120d68d66c9eba25af67 (patch)
treebefe11fad275221b34eb0f36c0571eee63f83a32 /addons/web/static/src
parent2c073283dff2e17be326ca3d7e4a0c83c5801202 (diff)
[IMP] only protect crashmanager creation as other children are destroyed and recreated every time
bzr revid: xmo@openerp.com-20120127164332-4mw5pxzoep0newgo
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/chrome.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js
index 8804de96d34..1eb61f6a0ce 100644
--- a/addons/web/static/src/js/chrome.js
+++ b/addons/web/static/src/js/chrome.js
@@ -1107,9 +1107,9 @@ openerp.web.WebClient = openerp.web.OldWidget.extend(/** @lends openerp.web.WebC
self.menu.start();
},
show_common: function() {
- if (this.initialized_common) { return; }
- this.initialized_common = true;
- this.crashmanager = new openerp.web.CrashManager();
+ if (!this.crashmanager) {
+ this.crashmanager = new openerp.web.CrashManager();
+ }
this.notification = new openerp.web.Notification(this);
this.notification.appendTo(this.$element);
this.loading = new openerp.web.Loading(this);