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/bootstrap/3/dataTables.bootstrap.min.js

4 lines
2.0 KiB
JavaScript

/*! DataTables Bootstrap 3 integration
* ©2011-2014 SpryMedia Ltd - datatables.net/license
*/
!function(o){function e(g,n){"use strict";g.extend(!0,n.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"}),g.extend(n.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"}),n.ext.renderer.pageButton.bootstrap=function(r,e,l,t,d,c){var u,b,a,p=new n.Api(r),f=r.oClasses,T=r.oLanguage.oPaginate,m=0,x=function(e,t){for(var a,n,o=function(e){e.preventDefault(),g(e.currentTarget).hasClass("disabled")||p.page(e.data.action).draw(!1)},s=0,i=t.length;s<i;s++)if(n=t[s],g.isArray(n))x(e,n);else{switch(b=u="",n){case"ellipsis":u="&hellip;",b="disabled";break;case"first":u=T.sFirst,b=n+(0<d?"":" disabled");break;case"previous":u=T.sPrevious,b=n+(0<d?"":" disabled");break;case"next":u=T.sNext,b=n+(d<c-1?"":" disabled");break;case"last":u=T.sLast,b=n+(d<c-1?"":" disabled");break;default:u=n+1,b=d===n?"active":""}u&&(a=g("<li>",{class:f.sPageButton+" "+b,id:0===l&&"string"==typeof n?r.sTableId+"_"+n:null}).append(g("<a>",{href:"#","aria-controls":r.sTableId,"data-dt-idx":m,tabindex:r.iTabIndex}).html(u)).appendTo(e),r.oApi._fnBindAction(a,{action:n},o),m++)}};try{a=g(o.activeElement).data("dt-idx")}catch(e){}x(g(e).empty().html('<ul class="pagination"/>').children("ul"),t),a&&g(e).find("[data-dt-idx="+a+"]").focus()},n.TableTools&&(g.extend(!0,n.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info"},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));