Showing 150 of 2,746 total issues
Function init
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function( c, wo ) { if ( c.$table.hasClass( 'hasResizable' ) ) { return; } c.$table.addClass( 'hasResizable' ); var noResize, $header, column, storedSizes, tmp,
Function storage
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ts.storage = function(table, key, value, options) { table = $(table)[0]; var cookieIndex, cookies, date, hasStorage = false, values = {},
Consider simplifying this complex logical expression. Open
Open
if (!$table.hasClass('tablesorter-' + theme) || c.theme !== c.appliedTheme || !wo.uitheme_applied) { wo.uitheme_applied = true; oldtheme = themesAll[c.appliedTheme] || {}; hasOldTheme = !$.isEmptyObject(oldtheme); oldremove = hasOldTheme ? [ oldtheme.sortNone, oldtheme.sortDesc, oldtheme.sortAsc, oldtheme.active ].join( ' ' ) : '';
Function $headers
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
c.$headers = $( $.map( c.$table.find( c.selectorHeaders ), function( elem, index ) { var configHeaders, header, column, template, tmp, $elem = $( elem ); // ignore cell (don't add it to c.$headers) if row has ignoreRow class if ( $elem.parent().hasClass( c.cssIgnoreRow ) ) { return; }
Function getColumnText
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getColumnText : function( table, column, callback, rowFilter ) { table = $( table )[0]; var tbodyIndex, rowIndex, cache, row, tbodyLen, rowLen, raw, parsed, $cell, result, hasCallback = typeof callback === 'function', allColumns = column === 'all',
Function run
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Notification.prototype.run = function(data, options) { var d, datas, name, type, value; if ($.isPlainObject(options)) { $.extend(this.options, options); } else if ($.type(options) === "string") {
Function addStyle
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var addStyle = function(name, def) { if (!name) { throw "Missing Style name"; } if (!def) {
Function checkFilters
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkFilters: function( table, filter, skipFirst ) { var c = table.config, wo = c.widgetOptions, filterArray = $.isArray( filter ), filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
Method isInstalled
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function isInstalled($dba,$dbh,$search,$update,$target_host){ $return = []; $return['msg'] = '';
Method isRepository
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function isRepository($dba,$dbh,$search,$update,$target_host, $start_row, $row_in_table) { $return = array(); $return['msg'] = ''; $return['error'] = false;
Function destroy
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
destroy : function( table, removeClasses, callback ) { table = $( table )[ 0 ]; if ( !table.hasInitialized ) { return; } // remove all widgets ts.removeWidget( table, true, false );
Function appendCache
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
appendCache : function( c, init ) { var parsed, totalRows, $tbody, $curTbody, rowIndex, tbodyIndex, appendTime, table = c.table, wo = c.widgetOptions, $tbodies = c.$tbodies,
Function findRange
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
findRange: function( c, val, ignoreRanges ) { // look for multiple columns '1-3,4-6,8' in data-column var temp, ranges, range, start, end, singles, i, indx, len, columns = []; if ( /^[0-9]+$/.test( val ) ) {
Function updateHeaderSortCount
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateHeaderSortCount : function( c, list ) { var col, dir, group, indx, primary, temp, val, order, sortList = list || c.sortList, len = sortList.length; c.sortList = [];
Function format
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
format: function(table, c, wo) { var $tbody, tbodyIndex, $rows, rows, $row, $cells, remove, indx, $table = c.$table, $tbodies = c.$tbodies, sortList = c.sortList,
Method get_TargetHost
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_TargetHost($user_id) { $dba = new DbAction(); $dbh = $dba->Connect(); $machine = $dba->hostManagerActiveList($user_id, $dbh);
Function getOptions
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getOptions: function( table, column, onlyAvail ) { table = $( table )[0]; var rowIndex, tbodyIndex, len, row, cache, indx, child, childLen, c = table.config, wo = c.widgetOptions,
Function applyWidgetId
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
applyWidgetId : function( table, id, init ) { var applied, time, name, c = table.config, wo = c.widgetOptions, widget = ts.getWidgetById( id );
Function computeColumnIndex
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
computeColumnIndex : function( $rows, c ) { var i, j, k, l, cell, cells, rowIndex, rowSpan, colSpan, firstAvailCol, // total columns has been calculated, use it to set the matrixrow columns = c && c.columns || 0, matrix = [],
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