diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/taskmanager.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/taskmanager.js b/script/taskmanager.js index da3a0586..a78d6776 100644 --- a/script/taskmanager.js +++ b/script/taskmanager.js @@ -12,7 +12,7 @@ function tmInit() item.append('<div class="data-tm-progress"><div class="progress"><div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%"></div></div></div>'); } if (item.is('[data-tm-log]')) { - item.append('<pre class="data-tm-log" />'); + item.append('<pre class="data-tm-log" style="display:none" />'); } item.prepend('<span class="data-tm-icon" />'); }); @@ -90,6 +90,8 @@ function tmResult(data, status) } else { icon.attr('class', 'data-tm-icon glyphicon glyphicon-trash'); } + } else { + console.log('Icon for ' + obj + ': ' + icon); } var progress = obj.find('.data-tm-progress'); if (progress) { @@ -105,6 +107,7 @@ function tmResult(data, status) var lKey = obj.attr('data-tm-log'); if (task.data && task.data[lKey]) { log.text(task.data[lKey]); + log.attr('style', (task.data[lKey] !== '' ? '' : 'display:none')); } } var cb = obj.attr('data-tm-callback'); |