diff options
author | Simon Rettberg | 2014-05-23 20:49:02 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-05-23 20:49:02 +0200 |
commit | fe6ac16498b05d0f0c8ed7fda394273815d3d6da (patch) | |
tree | cadf5f103ef3db7ba1b40d59d85937c998aad22f /script | |
parent | Server Setup page (diff) | |
download | slx-admin-fe6ac16498b05d0f0c8ed7fda394273815d3d6da.tar.gz slx-admin-fe6ac16498b05d0f0c8ed7fda394273815d3d6da.tar.xz slx-admin-fe6ac16498b05d0f0c8ed7fda394273815d3d6da.zip |
Stuff (WIP)
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'); |