Fixing the 'Mail this' feature

This commit is contained in:
sametmax 2015-05-10 19:46:30 +02:00
parent 9b84122414
commit 3a6e8a48fe
2 changed files with 4 additions and 7 deletions

View File

@ -600,7 +600,7 @@
e.preventDefault();
if (confirm("This picture is unique to your paste so you can identify" +
" it quickly. \n\n Do you want to know more about this?")) {
window.open("http://is.gd/IJaMRG", "_blank");
window.open("https://github.com/sametmax/VizHash.js", "_blank");
}
}).prependTo('.lnk-option').append(vhash.canvas);
}
@ -890,11 +890,8 @@
});
/* Send the paste by email */
$('#email-link').click(function() {
zerobin.getTinyURL(window.location.toString(), function(tinyurl) {
document.location.href= 'mailto:friend@example.com?body=' + tinyurl;
});
return false;
$('#email-link').click(function(e) {
e.target.href = 'mailto:friend@example.com?body=' + window.location.toString();
});

File diff suppressed because one or more lines are too long