diff options
| author | Christophe Simonis <chs@openerp.com> | 2012-07-25 11:34:37 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2012-07-25 11:34:37 +0200 |
| commit | 0924a29e7aa8d673bbeb2b57237187b4a24d63ed (patch) | |
| tree | e334854c48a36c26058efde82572f9e919a9f086 /addons/web/static/src | |
| parent | 9cc2f4fb2553e7c327cbe97e49ab693813500c4b (diff) | |
[FIX] backbonify Client
bzr revid: chs@openerp.com-20120725093437-hig5jtkdol9uagca
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index b5c69f5c82f..6b3f5eecdb8 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -58,7 +58,7 @@ instance.web.Dialog = instance.web.Widget.extend({ var self = this; this._super(parent); if (content) { - this.$element = content instanceof $ ? content : $(content); + this.setElement(content); } this.dialog_options = { modal: true, @@ -879,8 +879,7 @@ instance.web.Client = instance.web.Widget.extend({ var self = this; return instance.connection.session_bind(this.origin).then(function() { var $e = $(QWeb.render(self._template, {})); - self.$element.replaceWith($e); - self.$element = $e; + self.replaceElement($e); self.bind_events(); self.show_common(); }); |
