summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/snippets.editor.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2016-06-22 17:56:09 +0200
committerSimon Lejeune <sle@openerp.com>2016-06-22 17:56:22 +0200
commit314a680ab438d5329f27f4e4825531c5bcce0152 (patch)
treeaa2980ae167d35455dfadb8d05571332687d4b2a /addons/web_editor/static/src/js/snippets.editor.js
parent24d8fe0aef3818532c2e99bcdaabbcf2139afc1c (diff)
[FIX] web_editor: `save` method of RTE is async
So if you include this method without returning the deferred, weird things happen and i lose a lot of time.
Diffstat (limited to 'addons/web_editor/static/src/js/snippets.editor.js')
-rw-r--r--addons/web_editor/static/src/js/snippets.editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js
index ee0e07e4514..ca8819bff50 100644
--- a/addons/web_editor/static/src/js/snippets.editor.js
+++ b/addons/web_editor/static/src/js/snippets.editor.js
@@ -39,7 +39,7 @@ editor.Class.include({
},
save: function () {
this.buildingBlock.clean_for_save();
- this._super();
+ return this._super.apply(this, arguments);
},
});