1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00

several small fixes

This commit is contained in:
Remco 2014-10-16 21:35:37 +02:00
parent 2989c86c96
commit 6a1e6d7ad0
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -57,7 +57,8 @@ $(document).ready(function () {
$(li).html('<span>Error (' + xhr.status + ') during upload of file ' + file.name + '</span>');
}
files.push(URI(xhr.responseText).absoluteTo(location.href).toString());
files.push(xhr.responseText.replace("https://transfer.sh/", "").replace("\n", ""));
// files.push(URI(xhr.responseText).absoluteTo(location.href).toString());
$(".download-zip").attr("href", URI("(" + files.join(",") + ").zip").absoluteTo(location.href).toString());
$(".download-tar").attr("href", URI("(" + files.join(",") + ").tar.gz").absoluteTo(location.href).toString());