diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/taskmanager.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/script/taskmanager.js b/script/taskmanager.js index ae1d2f09..4be01c5b 100644 --- a/script/taskmanager.js +++ b/script/taskmanager.js @@ -127,9 +127,11 @@ function tmResult(data, status) } var log = obj.find('.data-tm-log'); if (log) { - var lKey = obj.attr('data-tm-log'); - if (task.data && task.data[lKey]) { - log.text(task.data[lKey]).show(); + if (!obj.data('tm-log-fail-only') || task.statusCode === "TASK_ERROR") { + var lKey = obj.data('data-tm-log'); + if (task.data && task.data[lKey]) { + log.text(task.data[lKey]).show(); + } } } var cb = obj.attr('data-tm-callback'); |