javascript - Sorting icon issue with Jquery Datatable fixd header -
i have follwoing script.
it enables fixed header jquery datatable..
var alertion = 0; $(document).ready(function() { $(window).on('scroll', function() { var scrolltop = $(this).scrolltop(); var topdistance = $("#campaigns_list").offset().top; if(topdistance < scrolltop) { if($(".fixedheader").length == 0) { new $.fn.datatable.fixedheader(campaign_overview_table, {"offsettop": 82},{ "top": true }); } else { $(".fixedheader").not(':last-child').remove(); } } else { $(".fixedheader").remove(); } }); });
the datatable initialized way
campaign_overview_table = $("#campaigns_list").datatable();
now every thing runs fine, when fixed header appears , click on column sort it, sorting arrow doesn't change
how can solve issue?
Comments
Post a Comment