From bd25b366ed3e1cf491afb4e6d795683afbfe716a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 7 May 2018 17:33:22 +0200 Subject: taskmanager.js: Support setting min height of log
--- script/taskmanager.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'script') diff --git a/script/taskmanager.js b/script/taskmanager.js index 5eae6cb3..ae1d2f09 100644 --- a/script/taskmanager.js +++ b/script/taskmanager.js @@ -16,7 +16,13 @@ function tmInit() item.append(''); } if (item.is('[data-tm-log]')) { - item.append(''); + var lh = item.data('tm-log-height'); + if (!lh) { + lh = ''; + } else { + lh = 'min-height:' + lh; + } + item.append(''); } item.prepend(''); }); @@ -123,8 +129,7 @@ function tmResult(data, status) if (log) { 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')); + log.text(task.data[lKey]).show(); } } var cb = obj.attr('data-tm-callback'); -- cgit v1.2.3-55-g7522