Showing 573 of 5,122 total issues
Avoid deeply nested control flow statements. Open
Open
if ( i === c.columns && $column.length ) {
wo.filter_$anyMatch = $column;
}
Avoid deeply nested control flow statements. Open
Open
if ( buildFilter && buildFilter.length === 0 ) {
buildFilter = $filter.children( 'input' );
}
Avoid deeply nested control flow statements. Open
Open
if ( option.hasOwnProperty( val ) && val !== 'text' ) {
options += ' ' + val + '="' + option[ val ].replace( tsfRegex.quote, '"' ) + '"';
}
Avoid deeply nested control flow statements. Open
Open
if ( i === c.columns && $column.length ) {
wo.filter_$anyMatch = $column;
}
Avoid deeply nested control flow statements. Open
Open
if ( debug ) {
debugOutput[ '(' + colIndex + ') ' + header.text() ] = {
parser : parser.id,
extractor : extractor ? extractor.id : 'none',
string : c.strings[ colIndex ],
Avoid deeply nested control flow statements. Open
Open
for ( string in fxn ) {
if ( typeof string === 'string' ) {
options += options === '' ?
'<option value="">' +
( $header.data( 'placeholder' ) ||
Avoid deeply nested control flow statements. Open
Open
for ( indx = 0; indx < query.length; indx++ ) {
res = query[ indx ].split( ':' );
if ( res.length > 1 ) {
// make the column a one-based index ( non-developers start counting from one :P )
if ( isNaN( res[0] ) ) {
Avoid deeply nested control flow statements. Open
Open
for ( indx = 1; indx < th.colSpan; indx++ ) {
c.sortList[ c.sortList.length ] = [ col + indx, dir ];
// update count on columns in colSpan
c.sortVars[ col + indx ].count = $.inArray( dir, order );
c.sortVars[ col + indx ].sortedBy = sortedBy;
Avoid deeply nested control flow statements. Open
Open
for (indx = 1; indx < len; indx++) {
// secondary, tertiary, etc sort column classes
$cells.eq(sortList[indx][0]).addClass( css[indx] || css[last] );
}
Avoid deeply nested control flow statements. Open
Open
if ( buildFilter && ( buildFilter.parent().length === 0 ||
( buildFilter.parent().length && buildFilter.parent()[0] !== $filter[0] ) ) ) {
$filter.append( buildFilter );
}
Avoid deeply nested control flow statements. Open
Open
if ( wo.filter_childByColumn ) {
if ( !wo.filter_childWithSibs ) {
// hide all child rows
childRow.addClass( wo.filter_filteredRow );
// if only showing resulting child row, only include parent
Avoid deeply nested control flow statements. Open
Open
for ( indx = 1; indx < childLen; indx++ ) {
child = cache.normalized[ rowIndex ][ c.columns ].$row.eq( indx ).children().eq( column );
arry[ arry.length ] = '' + ts.getElementText( c, child, column );
}
Avoid deeply nested control flow statements. Open
Open
if ( option.hasOwnProperty( val ) && val !== 'text' ) {
options += ' ' + val + '="' + option[ val ].replace( tsfRegex.quote, '"' ) + '"';
}
Avoid deeply nested control flow statements. Open
Open
if ( debug ) {
debugOutput[ '(' + colIndex + ') ' + header.text() ] = {
parser : parser.id,
extractor : extractor ? extractor.id : 'none',
string : c.strings[ colIndex ],
Avoid deeply nested control flow statements. Open
Open
if ( !parser ) {
parser = ts.detectParserForColumn( c, rows, -1, colIndex );
}
Avoid deeply nested control flow statements. Open
Open
if ( span > 0 ) {
colIndex += span;
max += span;
while ( span + 1 > 0 ) {
// set colspan columns to use the same parsers & extractors
Avoid deeply nested control flow statements. Open
Open
if ( cell ) {
prevRowData.child[ len ][ colIndex ] = ts.getParsedText( c, cell, colIndex );
span = $cells[ colIndex ].colSpan - 1;
if ( span > 0 ) {
cacheIndex += span;
Avoid deeply nested control flow statements. Open
Open
if (mb_strlen($results[$i]['desctext']) >= 14) {
$results[$i]['desctext'] = $myts->displayTarea(mb_substr($results[$i]['desctext'], 0, 90), 1, 1, 1, 1, 1);
}
Avoid deeply nested control flow statements. Open
Open
if ( !extractor ) {
// For now, maybe detect someday
extractor = false;
}
Avoid deeply nested control flow statements. Open
Open
if ( !hasParser && debug ) {
console.warn( 'No parser found for row: ' + rowIndex + ', column: ' + colIndex +
'; cell containing: "' + $(cell).text() + '"; does it have a header?' );
}