reset css display at fadein

This commit is contained in:
Wim Brand committed 2018-07-09 12:12:32 +02:00
1 parent 18ef9153fa
commit 5633460b97
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ var UploadProgressBar = /** @class */ (function () {
this.uploadDiv.setAttribute("class", "file_button");
this.uploadDiv.innerText = "Queued\n" + this.file.name;
this.uploadDivJQ = $(this.uploadDiv);
$("#uploads_queue").append(this.uploadDivJQ.hide().fadeIn('slow'));
$("#uploads_queue").append(this.uploadDivJQ.hide().fadeIn('slow').css("display", ""));
}
UploadProgressBar.prototype.onProgress = function (progress) {
this.uploadDiv.innerText = "Uploading... " + Math.round(progress * 1000) / 10 + "%\n" + this.file.name;
+5 -5
View File
@@ -14,18 +14,18 @@ class UploadProgressBar implements FileUpload {
this.queueNum = totalUploads
totalUploads++
this.uploadDiv = document.createElement("a");
this.uploadDiv.setAttribute("class", "file_button");
this.uploadDiv = document.createElement("a")
this.uploadDiv.setAttribute("class", "file_button")
this.uploadDiv.innerText = "Queued\n" + this.file.name
this.uploadDivJQ = $(this.uploadDiv)
$("#uploads_queue").append(
this.uploadDivJQ.hide().fadeIn('slow')
this.uploadDivJQ.hide().fadeIn('slow').css("display", "")
)
}
// Interface stuff
public file: File;
public file: File
public name: string
public onProgress(progress: number){
this.uploadDiv.innerText = "Uploading... " + Math.round(progress*1000)/10 + "%\n" + this.file.name
@@ -36,7 +36,7 @@ class UploadProgressBar implements FileUpload {
+'#111 0%, '
+'var(--highlight_color) '+ ((progress*100)) +'%, '
+'#111 '+ ((progress*100)+1) +'%)'
)
)
}
public onFinished(id: string){
finishedUploads[this.queueNum] = id