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.
2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
2 years ago
|
/*! © SpryMedia Ltd, Garrett Hyder - datatables.net/license */
|
||
|
!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net")(e,t),n(t,0,e.document)}:n(jQuery,window,document)}(function(r,e,t,i){"use strict";var u=r.fn.dataTable;return r(t).on("init.dt",function(e,t){var a,o,d,s,n;"dt"===e.namespace&&(e=t.oInit.conditionalPageLength||u.defaults.conditionalPageLength,n=t.aLengthMenu||u.defaults.lengthMenu,n=(n=Array.isArray(n[0])?n[0]:n).filter(function(e){return 0<e}),a=Math.min.apply(Math,n),r.isPlainObject(e)||!0===e)&&(o=r.isPlainObject(e)?e:{},d=new u.Api(t),s=500,o.speed!==i&&(s=o.speed),(n=function(e){var t=r(d.table().container()).find("div.dataTables_length"),n=d.page.info().pages,i=d.rows({search:"applied"}).count();e instanceof r.Event?n<=1&&i<=a?"fade"===o.style?t.stop().fadeTo(s,0):t.css("visibility","hidden"):"fade"===o.style?t.stop().fadeTo(s,1):t.css("visibility",""):n<=1&&i<=a&&("fade"===o.style?t.css("opacity",0):t.css("visibility","hidden")),o.conditionalOptions&&t.find("select option").each(function(e){parseInt(r(this).attr("value"),10)>i?r(this).hide():r(this).show()})})(null),d.on("draw.dt",n))}),u});
|