diff options
Diffstat (limited to 'theme/javascript/utils/sharing.js')
-rwxr-xr-x | theme/javascript/utils/sharing.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/theme/javascript/utils/sharing.js b/theme/javascript/utils/sharing.js index 4889b40..3599b27 100755 --- a/theme/javascript/utils/sharing.js +++ b/theme/javascript/utils/sharing.js @@ -16,13 +16,16 @@ define([ }, "weibo": function($el) { window.open("http://service.weibo.com/share/share.php?content=utf-8&url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)) + }, + "instapaper": function($el) { + window.open("http://www.instapaper.com/text?u="+encodeURIComponent(url)); } }; // Bind all sharing button var init = function() { - $(document).on("click", "a[data-sharing]", function(e) { + $(document).on("click", "a[data-sharing],button[data-sharing]", function(e) { if (e) e.preventDefault(); var type = $(this).data("sharing"); |