]>
Commit | Line | Data |
---|---|---|
1 | $(function() { | |
2 | var options = { | |
3 | padding: 0, | |
4 | nextSelector: 'a.next-page:last', | |
5 | contentSelector: '.post_list', | |
6 | autoTrigger: false, | |
7 | debug: true | |
8 | }; | |
9 | ||
10 | $('.post_list').jscroll(options); | |
11 | $(document).on('click', '#expand-list', function(){ | |
12 | $('.post-content').hide(); | |
13 | }); | |
14 | $(document).on('click', '#collapse-list', function(){ | |
15 | $('.post-content').show(); | |
16 | }); | |
17 | }); |