mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Merge pull request #27 from Natim/12_shorten_url_for_email_this
#12 - Problem for encoding URL when sending mail
This commit is contained in:
commit
1e3a9e227d
@ -212,7 +212,6 @@
|
||||
processData: false,
|
||||
dataType: 'json'
|
||||
}).done(function(data){
|
||||
console.log(data);
|
||||
success(data.id);
|
||||
});
|
||||
},
|
||||
@ -887,7 +886,7 @@
|
||||
/* Send the paste by email */
|
||||
$('#email-link').click(function() {
|
||||
zerobin.getTinyURL(window.location.toString(), function(tinyurl) {
|
||||
window.open('mailto:friend@example.com?body=' + tinyurl);
|
||||
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
Loading…
Reference in New Issue
Block a user