summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2016-01-15 16:46:32 +0100
committerDenis Ledoux <dle@odoo.com>2016-01-15 16:46:32 +0100
commit474baec1cf8505ac723d79f6aaa0e13afd3b475b (patch)
treeabb14c6207aca78775f82e5622ac234994c010b0 /addons/web_editor/static/src
parent9a4106bc44ad8000c13eed50cb977207aa9901e7 (diff)
parentddd3e08fbcb54e971537f9f20668c00dbe36ab37 (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.css3
-rw-r--r--addons/web_editor/static/src/js/backend.js2
-rw-r--r--addons/web_editor/static/src/js/translator.js2
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(/&lt;span data-oe-translation-id.+?&gt;(.+?)&lt;\/span&gt;/, '\$1'));
+ $('title').html($('title').html().replace(/&lt;span data-oe-model.+?&gt;(.+?)&lt;\/span&gt;/, '\$1'));
});
}