[FIX] export: make the 'Close' button works fine with modal
bzr revid: mat@openerp.com-20140430115650-334th9boorlb80aw
This commit is contained in:
parent
c4d91f3b39
commit
af03a3e4e0
|
@ -32,7 +32,7 @@ instance.web.DataExport = instance.web.Dialog.extend({
|
||||||
var self = this;
|
var self = this;
|
||||||
var options = {
|
var options = {
|
||||||
buttons: [
|
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(); }}
|
{text: _t("Export To File"), click: function () { self.on_click_export_data(); }}
|
||||||
],
|
],
|
||||||
close: function () { self.close();}
|
close: function () { self.close();}
|
||||||
|
|
Loading…
Reference in New Issue