1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

improve library scan progress reporting

This commit is contained in:
Luke Pulverenti 2013-03-28 15:25:36 -04:00
parent 67ffedd914
commit 6761d5c3c9
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@
html += task.Name;
if (task.State == "Running") {
var progress = Math.round(task.CurrentProgressPercentage || 0);
var progress = (task.CurrentProgressPercentage || 0).toFixed(1);
html += '<span style="color:#267F00;margin-right:5px;font-weight:bold;"> - ' + progress + '%</span>';
html += '<button type="button" data-icon="stop" data-iconpos="notext" data-inline="true" data-theme="b" data-mini="true" onclick="DashboardPage.stopTask(\'' + task.Id + '\');">Stop</button>';

View file

@ -119,7 +119,7 @@
}
else if (task.State == "Running") {
var progress = Math.round(task.CurrentProgressPercentage || 0);
var progress = (task.CurrentProgressPercentage || 0).toFixed(1);
html += '<p><progress max="100" value="' + progress + '" title="' + progress + '%">';
html += '' + progress + '%';