mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Refs #12 - Shorten url before to actually send a mail
This commit is contained in:
parent
303905aff5
commit
82ea02a60c
@ -745,8 +745,12 @@ $("#force-coloration").live("click", function(e) {
|
||||
});
|
||||
|
||||
/* 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;
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user