[FIX] export: make the 'Close' button works fine with modal

bzr revid: mat@openerp.com-20140430115650-334th9boorlb80aw
This commit is contained in:
Cédric Snauwaert 2014-04-30 13:56:50 +02:00 committed by Martin Trigaux
parent c4d91f3b39
commit af03a3e4e0
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ instance.web.DataExport = instance.web.Dialog.extend({
var self = this;
var options = {
buttons: [
{text: _t("Close"), click: function () { self.close(); }},
{text: _t("Close"), click: function () { self.$el.parents('.modal').modal('hide'); }},
{text: _t("Export To File"), click: function () { self.on_click_export_data(); }}
],
close: function () { self.close();}