Skip to content

Commit 3a6e8a4

Browse files
committed
Fixing the 'Mail this' feature
1 parent 9b84122 commit 3a6e8a4

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

zerobin/static/js/behavior.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
e.preventDefault();
601601
if (confirm("This picture is unique to your paste so you can identify" +
602602
" it quickly. \n\n Do you want to know more about this?")) {
603-
window.open("http://is.gd/IJaMRG", "_blank");
603+
window.open("https://github.com/sametmax/VizHash.js", "_blank");
604604
}
605605
}).prependTo('.lnk-option').append(vhash.canvas);
606606
}
@@ -890,11 +890,8 @@
890890
});
891891

892892
/* Send the paste by email */
893-
$('#email-link').click(function() {
894-
zerobin.getTinyURL(window.location.toString(), function(tinyurl) {
895-
document.location.href= 'mailto:friend@example.com?body=' + tinyurl;
896-
});
897-
return false;
893+
$('#email-link').click(function(e) {
894+
e.target.href = 'mailto:friend@example.com?body=' + window.location.toString();
898895
});
899896

900897

0 commit comments

Comments
 (0)