1
0
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:
Rémy HUBSCHER 2013-01-24 09:53:04 +01:00
commit 2b9bf81fcd

View File

@ -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 */