From 3bf3a40606ca2a5e8c9da74dd6c64dc07e599932 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 14 Aug 2018 18:29:30 +0530 Subject: [PATCH] [FIX] website: BS4, restore facebook snippet UI + solve JS error introduced by a recent commit Thanks to @kig-odoo for original fix --- .../static/src/js/editor/snippets.options.js | 2 +- .../static/src/xml/website.facebook_page.xml | 27 +++++++++++-------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index 1ba57400989..7e04db470c1 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -546,7 +546,7 @@ var FacebookPageDialog = weWidgets.Dialog.extend({ } else if (!self.fbData.small_header) { self.fbData.height = self.fbData.show_facepile ? 225 : 150; } - options.registry.facebookPage.prototype.markFbElement(self, self.$previewPage, self.fbData); + options.registry.facebookPage.prototype.markFbElement(self.getParent(), self.$previewPage, self.fbData); }, 404: function () { self._toggleWarning(false); diff --git a/addons/website/static/src/xml/website.facebook_page.xml b/addons/website/static/src/xml/website.facebook_page.xml index 7f16b568aec..d036e68b261 100644 --- a/addons/website/static/src/xml/website.facebook_page.xml +++ b/addons/website/static/src/xml/website.facebook_page.xml @@ -3,26 +3,31 @@
-
+
-
+
-
- -
-
- -
-
- +
+
+ + +
+
+ + +
+
+ + +
-
+