mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Merge 12_shorten_url_for_email_this
This commit is contained in:
commit
2b9bf81fcd
@ -878,11 +878,14 @@
|
||||
});
|
||||
|
||||
/* Send the paste by email */
|
||||
var emailLink = 'mailto:friend@example.com?body=' + window.location;
|
||||
$('#email-link').attr('href', emailLink);
|
||||
|
||||
$('#email-link').click(function() {
|
||||
zerobin.getTinyURL(window.location.toString(), function(tinyurl) {
|
||||
window.open('mailto:friend@example.com?body=' + tinyurl);
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
}); /* End of "document ready" jquery callback */
|
||||
|
||||
})(); /* End of self executing function */
|
||||
})(); /* End of self executing function */
|
||||
|
Loading…
Reference in New Issue
Block a user