diff -r 982d2226771c -r cfcbac34d020 src/widgets/Social.js --- a/src/widgets/Social.js Fri Nov 09 15:27:52 2012 +0100 +++ b/src/widgets/Social.js Fri Nov 16 17:36:56 2012 +0100 @@ -20,9 +20,9 @@ IriSP.Widgets.Social.prototype.template = '{{#show_url}}
' + '
{{l10n.copy}}
{{/show_url}}' - + '{{#show_fb}}{{/show_fb}}' - + '{{#show_twitter}}{{/show_twitter}}' - + '{{#show_gplus}}{{/show_gplus}}' + + '{{#show_fb}}{{/show_fb}}' + + '{{#show_twitter}}{{/show_twitter}}' + + '{{#show_gplus}}{{/show_gplus}}' + '{{#show_mail}}{{/show_mail}}
'; IriSP.Widgets.Social.prototype.messages = { @@ -52,6 +52,13 @@ this.$.find(".Ldt-Social-Input").focus(function() { this.select(); }); + this.$.find(".Ldt-Social-Ext").click(function() { + window.open( + IriSP.jQuery(this).attr("href"), + "_blank", + "height=300,width=450,left=100,top=100,toolbar=0,menubar=0,status=0,location=0"); + return false; + }); this.updateUrls(this.url, this.text); } @@ -82,6 +89,6 @@ this.text = _text; this.$.find(".Ldt-Social-Fb").attr("href", "http://www.facebook.com/share.php?" + IriSP.jQuery.param({ u: _url, t: _text })); this.$.find(".Ldt-Social-Twitter").attr("href", "https://twitter.com/intent/tweet?" + IriSP.jQuery.param({ url: _url, text: _text })); - this.$.find(".Ldt-Social-Gplus").attr("href", "https://plusone.google.com/_/+1/confirm?" + IriSP.jQuery.param({ url: _url, title: _text })); + this.$.find(".Ldt-Social-Gplus").attr("href", "https://plus.google.com/share?" + IriSP.jQuery.param({ url: _url, title: _text })); this.$.find(".Ldt-Social-Mail").attr("href", "mailto:?" + IriSP.jQuery.param({ subject: _text, body: _text + ": " + _url })); }