mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:49:55 +08:00
996e5cf021
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 }); |
||
---|---|---|
.. | ||
admin | ||
defer | ||
discourse | ||
docs | ||
locales | ||
admin.js.erb | ||
application.js.erb | ||
discourse.js | ||
ember_include.js.erb | ||
env.js | ||
jquery_include.js.erb | ||
main_include_admin.js | ||
main_include.js | ||
pagedown_custom.js | ||
preload_store.js | ||
vendor.js |