get headroom from bower
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user