--- a/templates/check.html Mon Jun 27 22:58:22 2016 +0800
+++ b/templates/check.html Tue Jun 28 18:52:52 2016 +0800
var $header = $collapser.closest('div');
var task = $header.attr('data-task');
var $lines = $header.nextAll('[data-task="' + task + '"]');
+ var toggle = function() {
+ var collapsed = $collapser.hasClass('collapsed');
+ $lines.toggleClass('uk-hidden', collapsed);
$collapser.on('click', function() {
$collapser.toggleClass('collapsed');
- var collapsed = $collapser.hasClass('collapsed');
- $lines.toggleClass('uk-hidden', collapsed);
+ if ((task == 'setup' || task == 'clone') && $lines.filter('.error, .warning, :target').length === 0) {
+ $collapser.addClass('collapsed');