update external subs
This commit is contained in:
parent
0f37b99468
commit
10bcfa593b
13 changed files with 110 additions and 101 deletions
|
@ -39,12 +39,12 @@ $.fn.taskButton = function (options) {
|
|||
var progress = (task.CurrentProgressPercentage || 0).toFixed(1);
|
||||
|
||||
if (options.progressElem) {
|
||||
var progressElem = options.progressElem.val(progress);
|
||||
options.progressElem.value = progress;
|
||||
|
||||
if (task.State == 'Running') {
|
||||
progressElem.show();
|
||||
options.progressElem.classList.remove('hide');
|
||||
} else {
|
||||
progressElem.hide();
|
||||
options.progressElem.classList.add('hide');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue