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