diff options
| author | Antoine Huvelle <ahu@openerp.com> | 2011-12-16 14:07:41 +0100 |
|---|---|---|
| committer | Antoine Huvelle <ahu@openerp.com> | 2011-12-16 14:07:41 +0100 |
| commit | 4bbb1c06833d83df5c8f3dc1469030462a83c5bd (patch) | |
| tree | 85f3a5184ea8a18f2cd5c21423c0e452ad694a2e /addons/web/static/src/js/data_export.js | |
| parent | 5026c6b43ec6b9490a708c2fc7370d96664a84dc (diff) | |
| parent | 2989c829f760df5bc182510146d67fdf9a877908 (diff) | |
[IMP] changes in 'group by' padding
bzr revid: ahu@openerp.com-20111216083515-tvmyyn1zzh34qzfp
bzr revid: ahu@openerp.com-20111216130741-a6f0bv7ixq16osg6
Diffstat (limited to 'addons/web/static/src/js/data_export.js')
| -rw-r--r-- | addons/web/static/src/js/data_export.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/addons/web/static/src/js/data_export.js b/addons/web/static/src/js/data_export.js index ea142606b5b..8a2d2c8594b 100644 --- a/addons/web/static/src/js/data_export.js +++ b/addons/web/static/src/js/data_export.js @@ -1,8 +1,9 @@ openerp.web.data_export = function(openerp) { -var QWeb = openerp.web.qweb; +var QWeb = openerp.web.qweb, + _t = openerp.web._t; openerp.web.DataExport = openerp.web.Dialog.extend({ template: 'ExportTreeView', - dialog_title: 'Export Data', + dialog_title: {toString: function () { return _t("Export Data"); }}, init: function(parent, dataset) { this._super(parent); this.records = {}; @@ -18,14 +19,10 @@ openerp.web.DataExport = openerp.web.Dialog.extend({ width: '55%', height: 'auto', position: 'top', - buttons : { - "Close" : function() { - self.close(); - }, - "Export To File" : function() { - self.on_click_export_data(); - } - }, + buttons : [ + {text: _t("Close"), click: function() { self.close(); }}, + {text: _t("Export To File"), click: function() { self.on_click_export_data(); }} + ], close: function(event, ui){ self.close();} }); self.$element.removeClass('ui-dialog-content ui-widget-content'); |
