diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-01-15 16:46:32 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-01-15 16:46:32 +0100 |
| commit | 474baec1cf8505ac723d79f6aaa0e13afd3b475b (patch) | |
| tree | abb14c6207aca78775f82e5622ac234994c010b0 /addons/web_editor/static/src | |
| parent | 9a4106bc44ad8000c13eed50cb977207aa9901e7 (diff) | |
| parent | ddd3e08fbcb54e971537f9f20668c00dbe36ab37 (diff) | |
[MERGE] forward port of branch 9.0 up to ddd3e08
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/css/backend.css | 3 | ||||
| -rw-r--r-- | addons/web_editor/static/src/js/backend.js | 2 | ||||
| -rw-r--r-- | addons/web_editor/static/src/js/translator.js | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/css/backend.css b/addons/web_editor/static/src/css/backend.css index 29871c3d305..42871187d12 100644 --- a/addons/web_editor/static/src/css/backend.css +++ b/addons/web_editor/static/src/css/backend.css @@ -5,6 +5,9 @@ line-height: initial !important; color: initial !important; } +.oe_form_field_html_text .note-editable.o_readonly { + min-height: 1em; +} .oe_form_field_html_text .note-editable p { margin: initial; } diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js index eca913e1309..acf603697b8 100644 --- a/addons/web_editor/static/src/js/backend.js +++ b/addons/web_editor/static/src/js/backend.js @@ -64,7 +64,7 @@ var FieldTextHtmlSimple = widget.extend({ this.$textarea = this.$("textarea").val(this.get('value') || "<p><br/></p>"); if (this.get("effective_readonly")) { - this.$textarea.hide().after('<div class="note-editable"/>'); + this.$textarea.hide().after('<div class="note-editable o_readonly"/>'); } else { this.$textarea.summernote(this._config()); diff --git a/addons/web_editor/static/src/js/translator.js b/addons/web_editor/static/src/js/translator.js index b9ed671020d..39efbe1db2f 100644 --- a/addons/web_editor/static/src/js/translator.js +++ b/addons/web_editor/static/src/js/translator.js @@ -319,7 +319,7 @@ if (edit_translations) { this.action = this.action.replace(/[$?]edit_translations[^&?]+/, ''); }); - $('title').html($('title').html().replace(/<span data-oe-translation-id.+?>(.+?)<\/span>/, '\$1')); + $('title').html($('title').html().replace(/<span data-oe-model.+?>(.+?)<\/span>/, '\$1')); }); } |
