summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 25980633fd2..5f4cd8978c2 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -463,6 +463,10 @@
$(window).on('resize', _.debounce(this.check_height.bind(this), 50));
this.check_height();
+ if (website.is_editable_button) {
+ this.$("button[data-action=edit]").removeClass("hidden");
+ }
+
return $.when(
this._super.apply(this, arguments),
this.rte.appendTo(this.$('#website-top-edit .nav.pull-right'))