diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-08-10 18:07:47 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-08-10 18:07:47 +0200 |
| commit | 1fa8680286262cea52d26ff8616b72d2862dab07 (patch) | |
| tree | 54ef67a0d819120fb5dcbbaa98ad91232cbc2116 /addons/web_editor/static/src/js | |
| parent | 39ae81141777071329623dbc3ca89172b960f295 (diff) | |
| parent | 48b2ce60ed12b9b0f3aaa0322465504798bd154e (diff) | |
[MERGE] forward port branch saas-17 up to 48b2ce60ed1
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js index 06053dd1cea..6b167c59edd 100644 --- a/addons/web_editor/static/src/js/backend.js +++ b/addons/web_editor/static/src/js/backend.js @@ -383,7 +383,7 @@ var FieldTextHtml = AbstractField.extend({ * @override */ commitChanges: function () { - if (!this.loaded) { + if (!this.loaded || this.mode === 'readonly') { return; } // switch to WYSIWYG mode if currently in code mode to get all changes |
