You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plugins/integration/foundation/dataTables.foundation.min.js

9 lines
1.8 KiB
JavaScript

/*!
DataTables Foundation integration
©2011-2014 SpryMedia Ltd - datatables.net/license
*/
(function(c,w,x){c=function(e,b){e.extend(b.ext.classes,{sWrapper:"dataTables_wrapper dt-foundation"});e.extend(!0,b.defaults,{dom:"<'row'<'small-6 columns'l><'small-6 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",renderer:"foundation"});b.ext.renderer.pageButton.foundation=function(g,c,r,l,h,n){var t=new b.Api(g),u=g.oClasses,k=g.oLanguage.oPaginate,d,f,q=function(b,c){var p,l=function(a){a.preventDefault();"ellipsis"!==a.data.action&&t.page(a.data.action).draw(!1)};var m=0;for(p=
c.length;m<p;m++){var a=c[m];if(e.isArray(a))q(b,a);else{f=d="";switch(a){case "ellipsis":d="&hellip;";f="unavailable";break;case "first":d=k.sFirst;f=a+(0<h?"":" unavailable");break;case "previous":d=k.sPrevious;f=a+(0<h?"":" unavailable");break;case "next":d=k.sNext;f=a+(h<n-1?"":" unavailable");break;case "last":d=k.sLast;f=a+(h<n-1?"":" unavailable");break;default:d=a+1,f=h===a?"current":""}if(d){var v=e("<li>",{"class":u.sPageButton+" "+f,"aria-controls":g.sTableId,tabindex:g.iTabIndex,id:0===
r&&"string"===typeof a?g.sTableId+"_"+a:null}).append(e("<a>",{href:"#"}).html(d)).appendTo(b);g.oApi._fnBindAction(v,{action:a},l)}}}};q(e(c).empty().html('<ul class="pagination"/>').children("ul"),l)};b.TableTools&&(e.extend(!0,b.TableTools.classes,{container:"DTTT button-group",buttons:{normal:"button small",disabled:"disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},select:{row:"active"}}),e.extend(!0,b.TableTools.DEFAULTS.oTags,{collection:{container:"ul",
button:"li",liner:"a"}}))};"function"===typeof define&&define.amd?define(["jquery","datatables"],c):"object"===typeof exports?c(require("jquery"),require("datatables")):jQuery&&c(jQuery,jQuery.fn.dataTable)})(window,document);