fix: player display bug
This commit is contained in:
parent
c8f0ccf706
commit
2c60e46ad8
@ -156,7 +156,7 @@ function displayPlaylist(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
displayActiveItem(data.current_index);
|
displayActiveItem(data.current_index);
|
||||||
updatePlayerInfo(items[data.current_index]);
|
updatePlayerInfo(items[data.current_index - data.start_from]);
|
||||||
bindPlaylistEvent();
|
bindPlaylistEvent();
|
||||||
playlist_table.animate({ opacity: 1 }, 200);
|
playlist_table.animate({ opacity: 1 }, 200);
|
||||||
});
|
});
|
||||||
@ -925,7 +925,7 @@ function uploadNextFile(){
|
|||||||
req.upload.addEventListener("progress", function(e){
|
req.upload.addEventListener("progress", function(e){
|
||||||
if (e.lengthComputable) {
|
if (e.lengthComputable) {
|
||||||
let percent = e.loaded / e.total;
|
let percent = e.loaded / e.total;
|
||||||
setProgressBar(file_progress_item.progress, percent, Math.floor(percent) + "%");
|
setProgressBar(file_progress_item.progress, percent, Math.floor(percent*100) + "%");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user