mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Fixing the 'Mail this' feature
This commit is contained in:
parent
9b84122414
commit
3a6e8a48fe
@ -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();
|
||||
});
|
||||
|
||||
|
||||
|
2
zerobin/static/js/main.min.js
vendored
2
zerobin/static/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user