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/conditionalPaging/dataTables.conditionalPagin...

2 lines
1.1 KiB
JavaScript

/*! © SpryMedia Ltd, Matthew Hasbach - datatables.net/license */
!function(i){var t,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return i(e,window,document)}):"object"==typeof exports?(t=require("jquery"),d=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||t(e),d(e,n),i(n,0,e.document)}:(d(window,t),module.exports=i(t,window,window.document))):i(jQuery,window,document)}(function(a,e,n){"use strict";var i=a.fn.dataTable;return a(n).on("init.dt",function(e,n){var t,d,o;"dt"===e.namespace&&(e=n.oInit.conditionalPaging||i.defaults.conditionalPaging,a.isPlainObject(e)||!0===e)&&(t=a.isPlainObject(e)?e:{},d=new i.Api(n),o=500,void 0!==t.speed&&(o=t.speed),(e=function(e){var n=a(d.table().container()).find("div.dt-paging"),i=d.page.info().pages;e instanceof a.Event?i<=1?"fade"===t.style?n.stop().fadeTo(o,0):n.css("visibility","hidden"):"fade"===t.style?n.stop().fadeTo(o,1):n.css("visibility",""):i<=1&&("fade"===t.style?n.css("opacity",0):n.css("visibility","hidden"))})(null),d.on("draw.dt",e))}),i});