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

get headroom from bower

This commit is contained in:
Luke Pulverenti 2015-11-28 15:39:14 -05:00
parent 77e3111ad1
commit 27c3bdc042
58 changed files with 1224 additions and 3803 deletions

View file

@ -1,5 +1,4 @@

$.fn.taskButton = function (options) {
$.fn.taskButton = function (options) {
function pollTasks(button) {
@ -34,7 +33,13 @@ $.fn.taskButton = function (options) {
return;
}
$(button).buttonEnabled(task.State == 'Idle').attr('data-taskid', task.Id);
if (task.State == 'Idle') {
$(button).removeAttr('disabled');
} else {
$(button).attr('disabled', 'disabled');
}
$(button).attr('data-taskid', task.Id);
var progress = (task.CurrentProgressPercentage || 0).toFixed(1);