melder/vendor/DataTables/DataTables-2.0.2/js/dataTables.bootstrap.min.js
2024-03-13 12:03:56 +01:00

4 lines
1.6 KiB
JavaScript

/*! DataTables Bootstrap 3 integration
* ©2011-2015 SpryMedia Ltd - datatables.net/license
*/
!function(n){var o,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(o=require("jquery"),a=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||o(e),a(e,t),n(t,0,e.document)}:(a(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(i,e,t){"use strict";var n=i.fn.dataTable;return i.extend(!0,n.defaults,{renderer:"bootstrap"}),i.extend(!0,n.ext.classes,{container:"dt-container form-inline dt-bootstrap",search:{input:"form-control input-sm"},length:{select:"form-control input-sm"},processing:{container:"dt-processing panel panel-default"}}),n.ext.renderer.pagingButton.bootstrap=function(e,t,n,o,a){var r=["dt-paging-button","page-item"],o=(o&&r.push("active"),a&&r.push("disabled"),i("<li>").addClass(r.join(" ")));return{display:o,clicker:i("<a>",{href:a?null:"#",class:"page-link"}).html(n).appendTo(o)}},n.ext.renderer.pagingContainer.bootstrap=function(e,t){return i("<ul/>").addClass("pagination").append(t)},n.ext.renderer.layout.bootstrap=function(e,t,n){var o=i("<div/>",{class:"row"}).appendTo(t);i.each(n,function(e,t){var n="";"start"===e?n+="col-sm-6 text-left":"end"===e?(n+="col-sm-6 text-right",0===o.find(".col-sm-6").length&&(n+=" col-sm-offset-6")):"full"===e&&(n+="col-sm-12",t.table||(n+=" text-center")),i("<div/>",{id:t.id||null,class:n+" "+(t.className||"")}).append(t.contents).appendTo(o)})},n});