riking 996e5cf021 Make Discourse.ShareLink easy for plugins
For example, this javascript code, if added by a plugin, would enable a Tumblr share link:

Discourse.ShareLink.addTarget('tumblr', {
  iconClass: 'fa-tumblr',
  generateUrl: function(link, title) {
    return ("http://www.tumblr.com/share/link?url=" + encodeURIComponent(link) + "&description=" + encodeURIComponent(title));
  },
  shouldOpenInPopup: true
});
2014-03-13 23:38:57 -07:00
..
2014-02-20 11:10:56 -05:00
2013-10-01 11:16:27 -04:00
2014-03-11 03:01:12 -04:00
2013-10-01 11:16:27 -04:00
2014-02-13 13:31:13 -08:00
2013-12-23 17:53:33 +11:00
2013-12-23 17:53:33 +11:00
2014-02-22 01:41:01 +01:00
2014-02-12 12:57:55 -05:00