| Revision 2566:9bf417837888,
767 bytes
checked in by franck <carnet.franck.paul@…>, 12 years ago
(diff) |
|
Add some people in CREDITS, remove trailing spaces and tabs.
|
| Line | |
|---|
| 1 | $(function() { |
|---|
| 2 | |
|---|
| 3 | $filtersform = $('#filters-form'); |
|---|
| 4 | $filtersform.before('<p><a id="filter-control" class="form-control" href="?" style="display:inline">'+dotclear.msg.filter_posts_list+'</a></p>') |
|---|
| 5 | |
|---|
| 6 | if( dotclear.msg.show_filters == 'false' ) { |
|---|
| 7 | $filtersform.hide(); |
|---|
| 8 | } else { |
|---|
| 9 | $('#filter-control') |
|---|
| 10 | .addClass('open') |
|---|
| 11 | .text(dotclear.msg.cancel_the_filter); |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | $('#filter-control').click(function() { |
|---|
| 15 | if( $(this).hasClass('open') ) { |
|---|
| 16 | if( dotclear.msg.show_filters == 'true' ) { |
|---|
| 17 | return true; |
|---|
| 18 | } else { |
|---|
| 19 | $filtersform.hide(); |
|---|
| 20 | $(this).removeClass('open') |
|---|
| 21 | .text(dotclear.msg.filter_posts_list); |
|---|
| 22 | } |
|---|
| 23 | } else { |
|---|
| 24 | $filtersform.show(); |
|---|
| 25 | $(this).addClass('open') |
|---|
| 26 | .text(dotclear.msg.cancel_the_filter); |
|---|
| 27 | } |
|---|
| 28 | return false; |
|---|
| 29 | }); |
|---|
| 30 | }); |
|---|
Note: See
TracBrowser
for help on using the repository browser.