Lines 576-590
Link Here
|
576 |
} else { |
576 |
} else { |
577 |
table.search( term ).draw(); |
577 |
table.search( term ).draw(); |
578 |
} |
578 |
} |
579 |
clearFilter( term ); |
|
|
580 |
} |
581 |
|
582 |
function clearFilter( term ){ |
583 |
if( term == "" ){ |
584 |
$(".dt_button_clear_filter").addClass("disabled"); |
585 |
} else { |
586 |
$(".dt_button_clear_filter").removeClass("disabled"); |
587 |
} |
588 |
} |
579 |
} |
589 |
|
580 |
|
590 |
/* Custom table search configuration: If a table row |
581 |
/* Custom table search configuration: If a table row |
Lines 655-667
Link Here
|
655 |
var opt = $(this).find("option:selected").text(); |
646 |
var opt = $(this).find("option:selected").text(); |
656 |
filterDataTable( table_dt, 2, opt ); |
647 |
filterDataTable( table_dt, 2, opt ); |
657 |
}); |
648 |
}); |
658 |
|
|
|
659 |
$(".dt_button_clear_filter").on("click", function(){ |
660 |
table_dt.search('').columns().search('').draw(); |
661 |
$("#news-filter select").each(function(){ |
662 |
$(this).val(""); |
663 |
}); |
664 |
}); |
665 |
}); |
649 |
}); |
666 |
</script> |
650 |
</script> |
667 |
[% ELSE %] |
651 |
[% ELSE %] |
668 |
- |
|
|