diff --git a/web/share/templates/uncategorized.html b/web/share/templates/uncategorized.html index 0af1419b..6fd462cf 100644 --- a/web/share/templates/uncategorized.html +++ b/web/share/templates/uncategorized.html @@ -16,6 +16,10 @@ ev.preventDefault(); var generated = $('#generated-date').text(); var gen_date = Date.parse(generated); + + $("div.job").each(function () { + $(this).show(); + }); $( "li.log-link" ).each(function() { if (! $( this ).hasClass("dated") ) { var timestamp = $( this ).text().substr(0,16); @@ -30,6 +34,21 @@ $( this ).show(); } }); + $("div.job").each(function () { + var visible = $('ul li:visible', $(this)).size() + if (visible == 0) $(this).hide(); + else $(this).show(); + }); + $("#menu li").each(function () { + var h = $("a", this).attr('href').substring(1); + if ($('a[name="' + h + '"]').closest("div").is(":visible")){ + $(this).show(); + }else{ + $(this).hide(); + } + + }); + } $(function() { @@ -56,7 +75,7 @@ -