[FIX] dialog restore close hook fme

bzr revid: al@openerp.com-20110810222354-glykgj1cvvt57upa
This commit is contained in:
Antony Lesuisse
2011-08-11 00:23:54 +02:00
parent 0b9610e435
commit ea999bd1cd
+1 -1
View File
@@ -318,6 +318,7 @@ openerp.base.Dialog = openerp.base.OldWidget.extend({
max_height: '100%',
autoOpen: false,
buttons: {},
beforeClose: function () { self.on_close(); }
};
for (var f in this) {
if (f.substr(0, 10) == 'on_button_') {
@@ -381,7 +382,6 @@ openerp.base.Dialog = openerp.base.OldWidget.extend({
close: function() {
// Closes the dialog but leave it in a state where it could be opened again.
this.$dialog.dialog('close');
this.on_close();
},
on_close: function() {
},