diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 6be3e42a..ee538c1c 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -821,11 +821,11 @@ */ function _fnGetCellData( oSettings, iRow, iCol, sSpecific ) { - var sData; var oCol = oSettings.aoColumns[iCol]; var oData = oSettings.aoData[iRow]._aData; + var sData = oCol.fnGetData( oData, sSpecific ); - if ( (sData=oCol.fnGetData( oData, sSpecific )) === undefined ) + if ( sData === undefined ) { if ( oSettings.iDrawError != oSettings.iDraw && oCol.sDefaultContent === null ) { @@ -1496,15 +1496,12 @@ iRowCount++; /* If there is an open row - and it is attached to this parent - attach it on redraw */ - if ( iOpenRows !== 0 ) + for ( var k=0 ; k iThat; } - - return parseInt(sThis, 10) >= parseInt(sThat, 10); + return true; }; @@ -11970,15 +11953,19 @@ } } } ); - $.extend( DataTable.ext.oSort, { /* * text sorting */ "string-pre": function ( a ) { - if ( typeof a != 'string' ) { - a = (a !== null && a.toString) ? a.toString() : ''; + if ( typeof a != 'string' ) + { + if (a === null || a === undefined || !a.toString) + { + return ''; + } + a = a.toString(); } return a.toLowerCase(); },