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

enter image description here

enter image description here

how can solve issue?


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -