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

4 lines
1.6 KiB
JavaScript

/*! DataTables Bootstrap 2 integration
* ©2011-2014 SpryMedia Ltd - datatables.net/license
*/
!function(w,n){w.extend(!0,n.defaults,{dom:"<'row-fluid'<'span6'l><'span6'f>r><'row-fluid'<'span12't>><'row-fluid'<'span6'i><'span6'p>>",renderer:"bootstrap"}),w.extend(n.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap"}),n.ext.renderer.pageButton.bootstrap=function(l,e,d,a,r,p){function b(e,a){function n(e){e.preventDefault(),w(e.currentTarget).hasClass("disabled")||T.page(e.data.action).draw(!1)}for(var t,s,i=0,o=a.length;i<o;i++)if(s=a[i],w.isArray(s))b(e,s);else{switch(u=c="",s){case"ellipsis":c="&hellip;",u="disabled";break;case"first":c=g.sFirst,u=s+(0<r?"":" disabled");break;case"previous":c=g.sPrevious,u=s+(0<r?"":" disabled");break;case"next":c=g.sNext,u=s+(r<p-1?"":" disabled");break;case"last":c=g.sLast,u=s+(r<p-1?"":" disabled");break;default:c=s+1,u=r===s?"active":""}c&&(t=w("<li>",{class:f.sPageButton+" "+u,"aria-controls":l.sTableId,tabindex:l.iTabIndex,id:0===d&&"string"==typeof s?l.sTableId+"_"+s:null}).append(w("<a>",{href:"#"}).html(c)).appendTo(e),l.oApi._fnBindAction(t,{action:s},n))}}var c,u,T=new n.Api(l),f=l.oClasses,g=l.oLanguage.oPaginate;b(w(e).empty().html('<div class="pagination"><ul/></div>').find("ul"),a)},n.TableTools&&(w.extend(!0,n.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn",disabled:"disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info modal"},select:{row:"active"}}),w.extend(!0,n.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))}((window,document,jQuery),jQuery.fn.dataTable);