From fe6ac16498b05d0f0c8ed7fda394273815d3d6da Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Fri, 23 May 2014 20:49:02 +0200
Subject: Stuff (WIP)
---
script/taskmanager.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'script')
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('
');
}
if (item.is('[data-tm-log]')) {
- item.append('');
+ item.append('');
}
item.prepend('');
});
@@ -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');
--
cgit v1.2.3-55-g7522