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