2015-04-25 19:25:03 +00:00
|
|
|
$(function(){
|
|
|
|
$('.checkboxes-helpers').each(function(){dotclear.checkboxesHelpers(this);});
|
|
|
|
|
|
|
|
$filtersform = $('#filters-form');
|
|
|
|
$filtersform.before('<p><a id="filter-control" class="form-control" href="plugin.php?p=zoneclearFeedServer&part=feed#entries" style="display:inline">'+dotclear.msg.filter_posts_list+'</a></p>')
|
2021-09-11 09:56:57 +00:00
|
|
|
|
2015-04-25 19:25:03 +00:00
|
|
|
if( dotclear.msg.show_filters == 'false' ) {
|
|
|
|
$filtersform.hide();
|
|
|
|
} else {
|
|
|
|
$('#filter-control')
|
|
|
|
.addClass('open')
|
|
|
|
.text(dotclear.msg.cancel_the_filter);
|
|
|
|
}
|
2021-09-11 09:56:57 +00:00
|
|
|
|
2015-04-25 19:25:03 +00:00
|
|
|
$('#filter-control').click(function() {
|
|
|
|
if( $(this).hasClass('open') ) {
|
|
|
|
if( dotclear.msg.show_filters == 'true' ) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
$filtersform.hide();
|
|
|
|
$(this).removeClass('open')
|
|
|
|
.text(dotclear.msg.filter_posts_list);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$filtersform.show();
|
|
|
|
$(this).addClass('open')
|
|
|
|
.text(dotclear.msg.cancel_the_filter);
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|