[FIX] website: remove an option from the facebook block
Facebook no longer supports the option to see the profile pictures of friends who have liked the page. So this commit removes the option (which was no longer useful). See [same issue at WordPress]. [same issue at WordPress]: https://wordpress.org/support/topic/facebook-likebox-disappearance-of-the-faces-of-friends-who-like-the-page/ task-2950329 closes odoo/odoo#98502 X-original-commit: d2657b5272cdbd6bdf3918d97acdcf2d829076d3 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -16,7 +16,7 @@ const FacebookPageWidget = publicWidget.Widget.extend({
|
||||
|
||||
this.options.wysiwyg && this.options.wysiwyg.odooEditor.observerUnactive();
|
||||
|
||||
var params = _.pick(this.$el[0].dataset, 'href', 'height', 'tabs', 'small_header', 'hide_cover', 'show_facepile');
|
||||
var params = _.pick(this.$el[0].dataset, 'href', 'height', 'tabs', 'small_header', 'hide_cover');
|
||||
if (!params.href) {
|
||||
return def;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ options.registry.facebookPage = options.Class.extend({
|
||||
tabs: '',
|
||||
small_header: true,
|
||||
hide_cover: true,
|
||||
show_facepile: false,
|
||||
};
|
||||
this.fbData = _.defaults(_.pick(this.$target[0].dataset, _.keys(defaults)), defaults);
|
||||
|
||||
@@ -101,9 +100,9 @@ options.registry.facebookPage = options.Class.extend({
|
||||
if (this.fbData.tabs) {
|
||||
this.fbData.height = this.fbData.tabs === 'events' ? 300 : 500;
|
||||
} else if (this.fbData.small_header) {
|
||||
this.fbData.height = this.fbData.show_facepile ? 165 : 70;
|
||||
this.fbData.height = 70;
|
||||
} else {
|
||||
this.fbData.height = this.fbData.show_facepile ? 225 : 150;
|
||||
this.fbData.height = 150;
|
||||
}
|
||||
_.each(this.fbData, (value, key) => {
|
||||
this.$target[0].dataset[key] = value;
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
<we-checkbox string="Events" data-option-name="tab.events" data-toggle-option="true" data-no-preview="true"/>
|
||||
<we-checkbox string="Messages" data-option-name="tab.messages" data-toggle-option="true" data-no-preview="true"/>
|
||||
<we-checkbox string="Small Header" data-option-name="small_header" data-toggle-option="true" data-no-preview="true"/>
|
||||
<we-checkbox string="Friends' Faces" data-option-name="show_facepile" data-toggle-option="true" data-no-preview="true"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user