|
|
|
renderer:"foundation"});a.ext.renderer.pageButton.foundation=function(d,j,q,r,g,k){var l=new a.Api(d),s=d.oClasses,h=d.oLanguage.oPaginate,e,f,p=function(a,m){var i,n,o,b,j=function(a){a.preventDefault();!c(a.currentTarget).hasClass("unavailable")&&l.page()!=a.data.action&&l.page(a.data.action).draw("page")};i=0;for(n=m.length;i<n;i++)if(b=m[i],c.isArray(b))p(a,b);else{f=e="";switch(b){case "ellipsis":e="…";f="unavailable";break;case "first":e=h.sFirst;f=b+(0<g?"":" unavailable");break;case "previous":e=
|
|
|
|
h.sPrevious;f=b+(0<g?"":" unavailable");break;case "next":e=h.sNext;f=b+(g<k-1?"":" unavailable");break;case "last":e=h.sLast;f=b+(g<k-1?"":" unavailable");break;default:e=b+1,f=g===b?"current":""}e&&(o=c("<li>",{"class":s.sPageButton+" "+f,"aria-controls":d.sTableId,tabindex:d.iTabIndex,id:0===q&&"string"===typeof b?d.sTableId+"_"+b:null}).append(c("<a>",{href:"#"}).html(e)).appendTo(a),d.oApi._fnBindAction(o,{action:b},j))}};p(c(j).empty().html('<ul class="pagination"/>').children("ul"),r)};return a});
|