mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-20 18:54:15 +01:00
Update dataTables.bootstrap4.js
This commit is contained in:
parent
51882ce3fa
commit
99acaf21cb
@ -1 +1 @@
|
||||
1ced30e2a78f55af9a6797e122bcf225b7b0d48c
|
||||
94d90ea3fbcb4db3449f351059abd0a087fa8180
|
||||
|
@ -170,7 +170,7 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
|
||||
catch (e) {}
|
||||
|
||||
attach(
|
||||
$(host).empty().html('<ul class="pagination"/>').children('ul'),
|
||||
$(host).empty().html('<ul class="pagination pagination-sm"/>').children('ul'),
|
||||
buttons
|
||||
);
|
||||
|
||||
|
2
media/js/dataTables.bootstrap4.min.js
vendored
2
media/js/dataTables.bootstrap4.min.js
vendored
@ -8,4 +8,4 @@ $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){ret
|
||||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(b){return a(b,window,document)}):"object"===typeof exports?module.exports=function(b,c){b||(b=window);c&&c.fn.dataTable||(c=require("datatables.net")(b,c).$);return a(c,b,b.document)}:a(jQuery,window,document)})(function(a,b,c,e){var d=a.fn.dataTable;a.extend(!0,d.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
|
||||
renderer:"bootstrap"});a.extend(d.ext.classes,{sWrapper:"dataTables_wrapper container-fluid dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"});d.ext.renderer.pageButton.bootstrap=function(b,k,v,q,n,r){var m=new d.Api(b),w=b.oClasses,p=b.oLanguage.oPaginate,x=b.oLanguage.oAria.paginate||{},g,h,t=0,u=function(c,d){var e,k,l,f,q=function(b){b.preventDefault();a(b.currentTarget).hasClass("disabled")||
|
||||
m.page()==b.data.action||m.page(b.data.action).draw("page")};e=0;for(k=d.length;e<k;e++)if(f=d[e],a.isArray(f))u(c,f);else{h=g="";switch(f){case "ellipsis":g="…";h="disabled";break;case "first":g=p.sFirst;h=f+(0<n?"":" disabled");break;case "previous":g=p.sPrevious;h=f+(0<n?"":" disabled");break;case "next":g=p.sNext;h=f+(n<r-1?"":" disabled");break;case "last":g=p.sLast;h=f+(n<r-1?"":" disabled");break;default:g=f+1,h=n===f?"active":""}g&&(l=a("<li>",{"class":w.sPageButton+" "+h,id:0===v&&
|
||||
"string"===typeof f?b.sTableId+"_"+f:null}).append(a("<a>",{href:"#","aria-controls":b.sTableId,"aria-label":x[f],"data-dt-idx":t,tabindex:b.iTabIndex,"class":"page-link"}).html(g)).appendTo(c),b.oApi._fnBindAction(l,{action:f},q),t++)}},l;try{l=a(k).find(c.activeElement).data("dt-idx")}catch(y){}u(a(k).empty().html('<ul class="pagination"/>').children("ul"),q);l!==e&&a(k).find("[data-dt-idx="+l+"]").focus()};return d});
|
||||
"string"===typeof f?b.sTableId+"_"+f:null}).append(a("<a>",{href:"#","aria-controls":b.sTableId,"aria-label":x[f],"data-dt-idx":t,tabindex:b.iTabIndex,"class":"page-link"}).html(g)).appendTo(c),b.oApi._fnBindAction(l,{action:f},q),t++)}},l;try{l=a(k).find(c.activeElement).data("dt-idx")}catch(y){}u(a(k).empty().html('<ul class="pagination pagination-sm"/>').children("ul"),q);l!==e&&a(k).find("[data-dt-idx="+l+"]").focus()};return d});
|
||||
|
Loading…
x
Reference in New Issue
Block a user