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