2015-08-12 21:17:46 +02:00
|
|
|
/*!
|
|
|
|
DataTables Foundation integration
|
2015-10-13 16:28:14 +02:00
|
|
|
©2011-2015 SpryMedia Ltd - datatables.net/license
|
2015-08-12 21:17:46 +02:00
|
|
|
*/
|
2015-10-13 16:28:14 +02:00
|
|
|
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],c):"object"===typeof exports?module.exports=function(a){a||(a=require("jquery"));a.fn.dataTable||require("datatables.net")(a);c(a)}:c(jQuery)})(function(c){var a=c.fn.dataTable;c.extend(a.ext.classes,{sWrapper:"dataTables_wrapper dt-foundation",sProcessing:"dataTables_processing panel"});c.extend(!0,a.defaults,{dom:"<'row'<'small-6 columns'l><'small-6 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",
|
2015-10-28 12:38:01 +01:00
|
|
|
renderer:"foundation"});a.ext.renderer.pageButton.foundation=function(e,j,q,r,g,k){var l=new a.Api(e),s=e.oClasses,h=e.oLanguage.oPaginate,t=e.oLanguage.oAria.paginate||{},d,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=d="";switch(b){case "ellipsis":d="…";f="unavailable";break;case "first":d=h.sFirst;f=b+
|
|
|
|
(0<g?"":" unavailable");break;case "previous":d=h.sPrevious;f=b+(0<g?"":" unavailable");break;case "next":d=h.sNext;f=b+(g<k-1?"":" unavailable");break;case "last":d=h.sLast;f=b+(g<k-1?"":" unavailable");break;default:d=b+1,f=g===b?"current":""}d&&(o=c("<li>",{"class":s.sPageButton+" "+f,"aria-controls":e.sTableId,"aria-label":t[b],tabindex:e.iTabIndex,id:0===q&&"string"===typeof b?e.sTableId+"_"+b:null}).append(c("<a>",{href:"#"}).html(d)).appendTo(a),e.oApi._fnBindAction(o,{action:b},j))}};p(c(j).empty().html('<ul class="pagination"/>').children("ul"),
|
|
|
|
r)};return a});
|