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/features/rowFill/dataTables.rowFill.min.js

2 lines
1.1 KiB
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
!function(e){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return e(n,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(n,t){t.fn.dataTable||require("datatables.net")(n,t)},"undefined"==typeof window?module.exports=function(n,t){return n=n||window,t=t||o(n),d(n,t),e(t,0,n.document)}:(d(window,o),module.exports=e(o,window,window.document))):e(jQuery,window,document)}(function(r,n,t){"use strict";function e(n){var t=n.table();this.s={dt:n,body:r(t.body())},this._attach()}var o=r.fn.dataTable;return e.prototype={_attach:function(){var i=this.s.dt,a=this.s.body;i.on("draw",function(){var n=i.columns(":visible").count(),t=i.rows({page:"current"}).count(),e="even",o="odd";(t=0===t?1:t)%2==0&&(e="odd",o="even");for(var d=0;d<i.page.len()-t;d++)a.append(r('<tr><td colspan="'+n+'">&nbsp;</td></tr>').addClass(d%2==0?e:o).addClass("dt-rowFill--filler"))})}},o.RowFill=e,r(t).on("preInit.dt",function(n,t){"dt"===n.namespace&&(n=new o.Api(t),t.oInit.rowFill||o.defaults.rowFill)&&new e(n)}),o});