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

4 lines
1.8 KiB
JavaScript

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