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

isolated clickonce dependancies

This commit is contained in:
LukePulverenti 2013-02-21 23:23:06 -05:00
parent 331a8d8366
commit 6e188875dd
2 changed files with 3 additions and 4 deletions

View file

@ -252,8 +252,8 @@
html += task.Name;
if (task.State == "Running") {
var progress = task.CurrentProgress || { PercentComplete: 0 };
html += '<span style="color:#267F00;margin-right:5px;font-weight:bold;"> - ' + Math.round(progress.PercentComplete) + '%</span>';
var progress = Math.round(task.CurrentProgressPercentage || 0);
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,8 +119,7 @@
}
else if (task.State == "Running") {
var progress = task.CurrentProgress || { PercentComplete: 0 };
progress = Math.round(progress.PercentComplete);
var progress = Math.round(task.CurrentProgressPercentage || 0);
html += '<p><progress max="100" value="' + progress + '" title="' + progress + '%">';
html += '' + progress + '%';