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
710 B
JavaScript

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