several improvements
This commit is contained in:
@@ -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/", ""));
|
||||
|
Reference in New Issue
Block a user