[FIX] backbonify Client

bzr revid: chs@openerp.com-20120725093437-hig5jtkdol9uagca
This commit is contained in:
Christophe Simonis 2012-07-25 11:34:37 +02:00
parent 9cc2f4fb25
commit 0924a29e7a
1 changed files with 2 additions and 3 deletions

View File

@ -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();
});