1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Going back to a very simple 'send by email' link since the previous attempt didn't work as expected

This commit is contained in:
sam 2012-05-24 14:41:26 +02:00
parent 419f618a30
commit a045de73d1

View File

@ -739,15 +739,7 @@ $("#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).bind('click', function(e){
$.get(emailLink).error(function(){
zerobin.message('error',
("You probably don't have one configured. Try " +
"<a href='https://www.mozilla.org/en-US/thunderbird/'>Thunderbird</a> or " +
"<a href='http://toolbar.google.com/gmail-helper/'>Gmail Notifier</a>" ),
'Cannot start your email client', true);
});
});
$('#email-link').attr('href', emailLink);