[FIX] Problem with popups

bzr revid: nicolas.vanhoren@openerp.com-20120918144924-2y72o7tauxspk4la
This commit is contained in:
niv-openerp 2012-09-18 16:49:24 +02:00
parent 2c09f43b7e
commit d9d3aab515
1 changed files with 2 additions and 2 deletions

View File

@ -126,11 +126,11 @@ instance.web.Dialog = instance.web.Widget.extend({
if (! this.dialog_inited)
this.init_dialog();
var o = this.get_options(options);
if (! this.no_erase_buttons) {
if (! this.params_buttons) {
this.$buttons.appendTo($("body"));
}
instance.web.dialog(this.$el, o).dialog('open');
if (! this.no_erase_buttons) {
if (! this.params_buttons) {
this.$buttons.appendTo(this.$el.dialog("widget"));
}
if (o.height === 'auto' && o.max_height) {