1
0
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:
sametmax 2013-01-31 03:08:34 -08:00
commit 1e3a9e227d
2 changed files with 2 additions and 3 deletions

View File

@ -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;
});

File diff suppressed because one or more lines are too long