diff --git a/.datatables-commit-sync b/.datatables-commit-sync index f7e5b652..fc392daf 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -af2610be0a9525494d934559e345961d5941efce +2734bacd0170da7a87e5b0cb21f9081c9738ff67 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 543afb36..63a5a7b1 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -8384,7 +8384,7 @@ } } - _fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis] ); + _fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis, recalc] ); _fnSaveState( settings ); }; diff --git a/media/js/jquery.dataTables.min.js b/media/js/jquery.dataTables.min.js index 879ebe8f..ebe5b489 100644 --- a/media/js/jquery.dataTables.min.js +++ b/media/js/jquery.dataTables.min.js @@ -120,7 +120,7 @@ a)bb(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[] return[k[k.length+b]]}return[$(c,b)];case "name":return g.map(i,function(a,b){return a===l[1]?b:null})}else return g(j).filter(a).map(function(){return g.inArray(this,j)}).toArray()},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()", "column().data()",function(){return this.iterator("column-rows",Vb,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ja(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ja(a.aoData, e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(c,d){if(a===l)return c.aoColumns[d].bVisible;var e=c.aoColumns,f=e[d],h=c.aoData,i,j,k;if(a!==l&&f.bVisible!==a){if(a){var m=g.inArray(!0,D(e,"bVisible"),d+1);i=0;for(j=h.length;i