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(o,e,n,i){"use strict";var s=o.fn.dataTable;return o(n).on("init.dt",function(e,n){var t,d,a;"dt"===e.namespace&&(e=n.oInit.conditionalPaging||s.defaults.conditionalPaging,o.isPlainObject(e)||!0===e)&&(t=o.isPlainObject(e)?e:{},d=new s.Api(n),a=500,t.speed!==i&&(a=t.speed),(e=function(e){var n=o(d.table().container()).find("div.dataTables_paginate"),i=d.page.info().pages;e instanceof o.Event?i<=1?"fade"===t.style?n.stop().fadeTo(a,0):n.css("visibility","hidden"):"fade"===t.style?n.stop().fadeTo(a,1):n.css("visibility",""):i<=1&&("fade"===t.style?n.css("opacity",0):n.css("visibility","hidden"))})(null),d.on("draw.dt",e))}),s});