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

2 lines
783 B
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
!function(o){var t,i;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return o(e,window,document)}):"object"==typeof exports?(t=require("jquery"),i=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),i(e,n),o(n,0,e.document)}:(i(window,t),module.exports=o(t,window,window.document))):o(jQuery,window,document)}(function(t,e,i){"use strict";var u=t.fn.dataTable;return t(i).on("preInit.dt",function(e,n){var o;"dt"===e.namespace&&(n.oInit.scrollToTop||u.defaults.scrollToTop)&&(o=new u.Api(n)).on("page",function(){setTimeout(function(){t(i).scrollTop(t(o.table().container()).offset().top)},10)})}),u});