summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js
diff options
context:
space:
mode:
authorKishan Gajjar <kishanegajjar@gmail.com>2019-08-30 09:57:19 +0000
committerMartin Trigaux <mat@odoo.com>2019-10-02 10:14:12 +0000
commit083c5bddb703d7c3d87f831e8fe1ff2136ffed79 (patch)
tree31baef7ecf3c7f65da4e6631b11eac9ca8dddf5e /addons/website/static/src/js
parentf96d6a9911b50f7a143b006ad6f6d02e3a6fe925 (diff)
[IMP] social_media, website_*: remove google+ mention
Google+ was shut down for business use and consumers. closes odoo/odoo#36271 See: https://plus.google.com/ Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src/js')
-rw-r--r--addons/website/static/src/js/content/snippets.animation.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/website/static/src/js/content/snippets.animation.js b/addons/website/static/src/js/content/snippets.animation.js
index 7acb36d284b..9a7b4ee8c14 100644
--- a/addons/website/static/src/js/content/snippets.animation.js
+++ b/addons/website/static/src/js/content/snippets.animation.js
@@ -997,7 +997,6 @@ registry.socialShare = publicWidget.Widget.extend({
this.$('.oe_social_facebook').click($.proxy(this._renderSocial, this, 'facebook'));
this.$('.oe_social_twitter').click($.proxy(this._renderSocial, this, 'twitter'));
this.$('.oe_social_linkedin').click($.proxy(this._renderSocial, this, 'linkedin'));
- this.$('.oe_social_google-plus').click($.proxy(this._renderSocial, this, 'google-plus'));
},
/**
* @private
@@ -1033,7 +1032,6 @@ registry.socialShare = publicWidget.Widget.extend({
'facebook': 'https://www.facebook.com/sharer/sharer.php?u=' + url,
'twitter': 'https://twitter.com/intent/tweet?original_referer=' + url + '&text=' + encodeURIComponent(title + hashtags + ' - ') + url,
'linkedin': 'https://www.linkedin.com/shareArticle?mini=true&url=' + url + '&title=' + encodeURIComponent(title),
- 'google-plus': 'https://plus.google.com/share?url=' + url,
};
if (!_.contains(_.keys(socialNetworks), social)) {
return;
@@ -1055,7 +1053,7 @@ registry.socialShare = publicWidget.Widget.extend({
*/
_onMouseEnter: function () {
var social = this.$el.data('social');
- this.socialList = social ? social.split(',') : ['facebook', 'twitter', 'linkedin', 'google-plus'];
+ this.socialList = social ? social.split(',') : ['facebook', 'twitter', 'linkedin'];
this.hashtags = this.$el.data('hashtags') || '';
this._render();