Skip to content

Commit

Permalink
Add "Email" site functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
codeodor committed Nov 4, 2013
1 parent 336bde5 commit 199a599
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/social-share-button.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ window.SocialShareButton =
if url.length == 0
url = encodeURIComponent(location.href)
switch site
when "email"
SocialShareButton.openUrl("mailto:?to=&subject=#{title}&body=#{url}")
when "weibo"
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}")
when "twitter"
Expand Down

0 comments on commit 199a599

Please sign in to comment.