diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-04-13 15:31:27 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-04-13 15:31:27 +0200 |
| commit | b0992d082da329abd7b0711b64a3706f9f5ee4fc (patch) | |
| tree | 09c013e2f1f9efdf310e59916ea21d9da849a44e /addons/web/static/src/js/widgets | |
| parent | f3cff93f5c95d0007e8e4b54e4c7a1e803b4ea5b (diff) | |
| parent | 8f30e707e53d020b127908ae1eeb34c6ea9b04b3 (diff) | |
[MERGE] forward port branch saas-14 up to 8f30e707e53
Diffstat (limited to 'addons/web/static/src/js/widgets')
| -rw-r--r-- | addons/web/static/src/js/widgets/data_export.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/addons/web/static/src/js/widgets/data_export.js b/addons/web/static/src/js/widgets/data_export.js index d3135f86ba6..c74b89af11b 100644 --- a/addons/web/static/src/js/widgets/data_export.js +++ b/addons/web/static/src/js/widgets/data_export.js @@ -207,9 +207,15 @@ var DataExport = Dialog.extend({ this.records = {}; this.dataset = dataset; this.exports = new data.DataSetSearch(this, 'ir.exports', this.dataset.get_context()); - + this.row_index = 0; this.row_index_level = 0; + + // The default for the ".modal_content" element is "max-height: 100%;" + // but we want it to always expand to "height: 100%;" for this modal. + // This can be achieved thanks to LESS modification without touching + // the ".modal-content" rules... but not with Internet explorer (11). + this.$modal.find(".modal-content").css("height", "100%"); }, start: function() { var self = this; @@ -261,7 +267,7 @@ var DataExport = Dialog.extend({ function do_setup_export_formats(formats) { var $fmts = self.$('.o_export_format'); - + _.each(formats, function(format, i) { var $radio = $('<input/>', {type: 'radio', value: format.tag, name: 'o_export_format_name'}); var $label = $('<label/>', {html: format.label}); @@ -362,7 +368,7 @@ var DataExport = Dialog.extend({ }, on_show_data: function(records, expansion) { var self = this; - + if(expansion) { this.$('.o_export_tree_item[data-id="' + expansion + '"]') .addClass('open') |
