summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-09-23 13:45:36 +0200
committerChristophe Matthieu <chm@odoo.com>2015-09-24 09:36:41 +0200
commit21c88933f78d13e0bd5c4d07e46a324fe70454c7 (patch)
tree8cd8dc3a2d2f9ee89f423a3cafe48a6e0846f4af /addons/website/static/src/js/website.editor.js
parent69810ab9dd66fa80adb57d5ffbf098dc0515605a (diff)
[FIX] web_editor & website: don't display edit placeholder if the node have class oe_no_empty or oe_not_editable
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 429d2e66220..9dca29619b7 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -32,6 +32,8 @@ website.TopBar.include({
});
$("#wrapwrap").find("[data-oe-model] .oe_structure.oe_empty, [data-oe-model].oe_structure.oe_empty, [data-oe-type=html]:empty")
+ .filter(".oe_not_editable")
+ .filter(".oe_no_empty")
.addClass("oe_empty")
.attr("data-oe-placeholder", _t("Press The Top-Left Edit Button"));