[FIX] openerp.web.Dialog checks data() before dialog('close')

bzr revid: fme@openerp.com-20121106100816-6v331a0jg2pjavp0
This commit is contained in:
Fabien Meghazi 2012-11-06 11:08:16 +01:00
parent 21778b193e
commit 1e85ca1bbe
1 changed files with 1 additions and 1 deletions

View File

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