From 083c5bddb703d7c3d87f831e8fe1ff2136ffed79 Mon Sep 17 00:00:00 2001 From: Kishan Gajjar Date: Fri, 30 Aug 2019 09:57:19 +0000 Subject: [IMP] social_media, website_*: remove google+ mention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/website/static/src/js/content/snippets.animation.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'addons/website/static/src/js') 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(); -- cgit v1.2.3