mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Merge 12_shorten_url_for_email_this
This commit is contained in:
@@ -878,11 +878,14 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* Send the paste by email */
|
/* Send the paste by email */
|
||||||
var emailLink = 'mailto:friend@example.com?body=' + window.location;
|
$('#email-link').click(function() {
|
||||||
$('#email-link').attr('href', emailLink);
|
zerobin.getTinyURL(window.location.toString(), function(tinyurl) {
|
||||||
|
window.open('mailto:friend@example.com?body=' + tinyurl);
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}); /* End of "document ready" jquery callback */
|
}); /* End of "document ready" jquery callback */
|
||||||
|
|
||||||
})(); /* End of self executing function */
|
})(); /* End of self executing function */
|
||||||
|
|||||||
Reference in New Issue
Block a user