diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-07-12 17:07:01 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-12 17:07:01 +0200 |
| commit | 965b2b747860a3b90efb60a48b2b482384a5c795 (patch) | |
| tree | 75ce37a7877126d0c5f368814ad95929b5a1d8d7 /addons/web_editor/static/src | |
| parent | 03d8f528b707650359048eeaf87da7c207943df7 (diff) | |
[FIX] web_editor: properly wait for save of the editor
A simple 'return' statement was removed by mistake with commit
https://github.com/odoo/odoo/commit/a473453b3166a381130d9bd6ec4851b9e1ecab26
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/editor.js b/addons/web_editor/static/src/js/editor/editor.js index 7536c1f5516..ca9f5b8ba51 100644 --- a/addons/web_editor/static/src/js/editor/editor.js +++ b/addons/web_editor/static/src/js/editor/editor.js @@ -145,7 +145,7 @@ var EditorMenuBar = Widget.extend({ save: function (reload) { var self = this; this.snippetsMenu.cleanForSave(); - this._saveCroppedImages().then(function () { + return this._saveCroppedImages().then(function () { return self.rte.save(); }).then(function () { if (reload !== false) { |
