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:
@@ -600,7 +600,7 @@
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (confirm("This picture is unique to your paste so you can identify" +
|
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?")) {
|
" 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);
|
}).prependTo('.lnk-option').append(vhash.canvas);
|
||||||
}
|
}
|
||||||
@@ -890,11 +890,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* Send the paste by email */
|
/* Send the paste by email */
|
||||||
$('#email-link').click(function() {
|
$('#email-link').click(function(e) {
|
||||||
zerobin.getTinyURL(window.location.toString(), function(tinyurl) {
|
e.target.href = 'mailto:friend@example.com?body=' + window.location.toString();
|
||||||
document.location.href= 'mailto:friend@example.com?body=' + tinyurl;
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
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
Reference in New Issue
Block a user