diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-07-13 18:38:18 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-07-24 14:28:35 +0200 |
| commit | 5f1ef0910bec16415989835b30727b976c80ea4f (patch) | |
| tree | 504f8196a5186e146ecae49221aa53eae2301721 /addons/web/static/src/js/widgets/data_export.js | |
| parent | 68766764bc9c2c824c7844bb721a48189d812ef6 (diff) | |
[IMP] web, *: lazy load dialog xml template
* web_editor, web_planner, website
The 'Dialog' class is used in both backend and frontend. Also, lots of
actions can be done without the use of any modal. It thus makes sense
to lazy load its related xml only when a first modal is opened.
This change also allows to get rid of the "base_common.xml" file as the
dialog template is the only remaining one in there and, in the future
website update, it will allow to not load any static XML file on website
page loadings.
Diffstat (limited to 'addons/web/static/src/js/widgets/data_export.js')
| -rw-r--r-- | addons/web/static/src/js/widgets/data_export.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/widgets/data_export.js b/addons/web/static/src/js/widgets/data_export.js index c11551ca2cc..fde9001f860 100644 --- a/addons/web/static/src/js/widgets/data_export.js +++ b/addons/web/static/src/js/widgets/data_export.js @@ -210,16 +210,16 @@ var DataExport = Dialog.extend({ this.row_index = 0; this.row_index_level = 0; + }, + start: function() { + var self = this; + var waitFor = [this._super.apply(this, arguments)]; // 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; - var waitFor = [this._super.apply(this, arguments)]; this.$fields_list = this.$('.o_fields_list'); this.$import_compat_radios = this.$('.o_import_compat input'); |
