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_editor/static/src/js/iframe.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_editor/static/src/js/iframe.js')
| -rw-r--r-- | addons/web_editor/static/src/js/iframe.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/iframe.js b/addons/web_editor/static/src/js/iframe.js index e2c3b5ef8a4..8b4fd385e81 100644 --- a/addons/web_editor/static/src/js/iframe.js +++ b/addons/web_editor/static/src/js/iframe.js @@ -8,8 +8,6 @@ var translator = require('web_editor.translate'); var rte = require('web_editor.rte'); var snippet_editor = require('web_editor.snippet.editor'); -ajax.loadXML('/web/static/src/xml/base_common.xml', core.qweb); - var callback = window ? window["callback"] : undefined; window.top.odoo[callback+"_updown"] = function (value, fields_values, field_name) { var $editable = $("#editable_area"); |
