media/jquery/tablesorter-master/js/widgets/widget-stickyHeaders.js
Function format
has 175 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
format: function(table, c, wo) {
// filter widget doesn't initialize on an empty table. Fixes #449
if ( c.$table.hasClass('hasStickyHeaders') || ($.inArray('filter', c.widgets) >= 0 && !c.$table.hasClass('hasFilters')) ) {
return;
}
File widget-stickyHeaders.js
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! Widget: stickyHeaders - updated 9/27/2017 (v2.29.0) *//*
* Requires tablesorter v2.8+ and jQuery 1.4.3+
* by Rob Garrison
*/
;(function ($, window) {
Function addHeaderResizeEvent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ts.addHeaderResizeEvent = function(table, disable, settings) {
table = $(table)[0]; // make sure we're using a dom element
if ( !table.config ) { return; }
var defaults = {
timer : 250
Function scrollSticky
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scrollSticky = function( resizing ) {
if (!$table.is(':visible')) { return; } // fixes #278
// Detect nested tables - fixes #724
nestedStickyTop = $nestedSticky.length ? $nestedSticky.offset().top - $yScroll.scrollTop() + $nestedSticky.height() : 0;
var tmp,
Function setWidth
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setWidth = function($orig, $clone){
var index, width, border, $cell, $this,
$cells = $orig.filter(':visible'),
len = $cells.length;
for ( index = 0; index < len; index++ ) {