summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/iframe.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-07-17 15:34:31 +0200
committerChristophe Matthieu <chm@odoo.com>2015-07-22 12:15:24 +0200
commit71732dceb6613dab28d6eef96fa155acc91af7ce (patch)
tree1f33280ca569fd23912a640a79ec8d878d934bfc /addons/web_editor/static/src/js/iframe.js
parentdfad968515b523ebc900a0ba0fa1b111626f6149 (diff)
[IMP] web: module can be asynchronous loaded if it return a deferred
Each module can return a deferred. In that case, the module is marked as loaded only when the deferred is resolved, and its value is equal to the resolved value. The module can be rejected (unloaded). This will be logged in the console as info. Remove if_dom_contains from the website, the modules return a rejected deferred if the DOM doesn't contains the seleted values.
Diffstat (limited to 'addons/web_editor/static/src/js/iframe.js')
-rw-r--r--addons/web_editor/static/src/js/iframe.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/iframe.js b/addons/web_editor/static/src/js/iframe.js
index 8b287064b7c..553c68b30af 100644
--- a/addons/web_editor/static/src/js/iframe.js
+++ b/addons/web_editor/static/src/js/iframe.js
@@ -74,5 +74,5 @@ translator.Class.include({
});
$(function () {
- odoo.init();
+ _.delay(odoo.init, 500);
});