1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

#12 - Problem for encoding URL when sending mail

This commit is contained in:
Rémy HUBSCHER 2013-01-31 12:05:48 +01:00
parent 0c1bcfdc87
commit ab9ef15de2
2 changed files with 2 additions and 3 deletions

View File

@ -212,7 +212,6 @@
processData: false, processData: false,
dataType: 'json' dataType: 'json'
}).done(function(data){ }).done(function(data){
console.log(data);
success(data.id); success(data.id);
}); });
}, },
@ -887,7 +886,7 @@
/* Send the paste by email */ /* Send the paste by email */
$('#email-link').click(function() { $('#email-link').click(function() {
zerobin.getTinyURL(window.location.toString(), function(tinyurl) { 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; return false;
}); });

File diff suppressed because one or more lines are too long