[FIX] openerp.web.Dialog checks data() before dialog('close')
bzr revid: fme@openerp.com-20121106100816-6v331a0jg2pjavp0
This commit is contained in:
parent
21778b193e
commit
1e85ca1bbe
|
@ -153,7 +153,7 @@ instance.web.Dialog = instance.web.Widget.extend({
|
|||
return res;
|
||||
},
|
||||
close: function() {
|
||||
if (this.dialog_inited) {
|
||||
if (this.dialog_inited && this.$el.is(":data(dialog)")) {
|
||||
this.$el.dialog('close');
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue