diff --git a/puppetboard/static/coffeescript/lists.coffee b/puppetboard/static/coffeescript/lists.coffee index 86e89ec..adf347b 100644 --- a/puppetboard/static/coffeescript/lists.coffee +++ b/puppetboard/static/coffeescript/lists.coffee @@ -1,11 +1,9 @@ $ = jQuery -$ -> -$('input.filter-list').parent('div').removeClass('hide') $("input.filter-list").on "keyup", (e) -> rex = new RegExp($(this).val(), "i") $(".searchable li").hide() - $(".searchable li").parent().parent().hide() + $(".searchable li").parent().parent('.list_hide_segment').hide() $(".searchable li").filter( -> rex.test $(this).text() ).show() diff --git a/puppetboard/static/js/lists.js b/puppetboard/static/js/lists.js index afaee34..206ed5d 100644 --- a/puppetboard/static/js/lists.js +++ b/puppetboard/static/js/lists.js @@ -4,15 +4,11 @@ $ = jQuery; - $(function() {}); - - $('input.filter-list').parent('div').removeClass('hide'); - $("input.filter-list").on("keyup", function(e) { var ev, rex; rex = new RegExp($(this).val(), "i"); $(".searchable li").hide(); - $(".searchable li").parent().parent().hide(); + $(".searchable li").parent().parent('.list_hide_segment').hide(); $(".searchable li").filter(function() { return rex.test($(this).text()); }).show(); diff --git a/puppetboard/templates/facts.html b/puppetboard/templates/facts.html index 345b293..ce3fe77 100644 --- a/puppetboard/templates/facts.html +++ b/puppetboard/templates/facts.html @@ -1,29 +1,29 @@ {% extends 'layout.html' %} {% block content %} -