Rev 24 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 24 | Rev 25 | ||
---|---|---|---|
1 | $(document).ready(function(){ |
1 | $(document).ready(function(){ |
- | 2 | $('div.filter_form').show(); |
|
2 | $('input#filter').quicksearch('.AllNews div.NewsSummary', { |
3 | $('input#filter').quicksearch('.AllNews div.NewsSummary', { |
3 | 'noResults': '#noresults', |
4 | 'noResults': '#noresults', |
4 | 'show': function () { |
5 | 'show': function () { |
5 | $(this).addClass('shown'); |
6 | $(this).addClass('shown'); |
6 | $(this).removeClass('hidden'); |
7 | $(this).removeClass('hidden'); |
7 | }, |
8 | }, |
8 | 'hide': function () { |
9 | 'hide': function () { |
9 | $(this).removeClass('shown'); |
10 | $(this).removeClass('shown'); |
10 | $(this).addClass('hidden'); |
11 | $(this).addClass('hidden'); |
11 | }, |
12 | }, |
12 | 'onAfter': function () { |
13 | 'onAfter': function () { |
13 | $('.AllNews').find('.hidden').each(function(){ |
14 | $('.AllNews').find('.hidden').each(function(){ |
14 | $(this).closest('div.category').children('p.category_name:first').hide(); |
15 | $(this).closest('div.category').children('p.category_name:first').hide(); |
15 | }); |
16 | }); |
16 | $('.AllNews').find('.shown').each(function(){ |
17 | $('.AllNews').find('.shown').each(function(){ |
17 | $(this).closest('div.category').children('p.category_name:first').show(); |
18 | $(this).closest('div.category').children('p.category_name:first').show(); |
18 | }); |
19 | }); |
19 | }
|
20 | }
|
20 | }); |
21 | }); |
21 | }); |
22 | }); |