[IMP] implementation of dialogbox stop() method.

bzr revid: ysa@tinyerp.com-20110713052602-qkuxt6sca9wktmtp
This commit is contained in:
Yogesh (OpenERP)
2011-07-13 10:56:02 +05:30
parent ca5d04e9dc
commit b37a904b73
@@ -26,12 +26,14 @@ openerp.base_export.Export = openerp.base.Controller.extend({
height: 'auto',
buttons : {
"Close" : function() {
self.stop();
self._export.dialog('destroy');
},
"Export To File" : function() {
self.get_fields();
}
}
},
close: function(event, ui){ self.stop();},
}).html(QWeb.render('ExportTreeView'))
self.on_show_data(result)
jQuery(this._export).find('#add_field').click(function(){
@@ -153,6 +155,11 @@ openerp.base_export.Export = openerp.base.Controller.extend({
this._export.dialog('destroy');
}
},
stop: function() {
jQuery(this._export).remove();
},
});
};