several improvements

This commit is contained in:
Remco
2014-10-16 21:25:04 +02:00
parent 4df542074f
commit de551a26b6
9 changed files with 29 additions and 558 deletions

View File

@@ -52,9 +52,9 @@ $(document).ready(function () {
// progress.className = (xhr.status == 200 ? "success" : "failure");
if (xhr.status == 200) {
$(li).html('<i class="icon-file fileupload-exists"></i><a target="_blank" href="' + xhr.responseText + '">' + xhr.responseText + '</a>');
$(li).html('<a target="_blank" href="' + xhr.responseText + '">' + xhr.responseText + '</a>');
} else {
$(li).html('Error (' + xhr.status + ') during upload of file ' + file.name + '.');
$(li).html('<span>Error (' + xhr.status + ') during upload of file ' + file.name + '</span>');
}
files.push(xhr.responseText.replace("https://transfer.sh/", ""));