diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 9997bc85..f7b7d977 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -3d7f4f017ebe45834c414111774745d57168d4b9 +9f491c3ae078c42f582c3a7594ee9ca77bf27f28 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 1baf6b77..cbfe92bc 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -8120,64 +8120,68 @@ }()); + + /** - * Provide a common method for plug-ins to check the version of DataTables being used, in order - * to ensure compatibility. - * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the - * formats "X" and "X.Y" are also acceptable. - * @returns {boolean} true if this version of DataTables is greater or equal to the required - * version, or false if this version of DataTales is not suitable + * Provide a common method for plug-ins to check the version of DataTables being + * used, in order to ensure compatibility. + * + * @param {string} version Version string to check for, in the format "X.Y.Z". + * Note that the formats "X" and "X.Y" are also acceptable. + * @returns {boolean} true if this version of DataTables is greater or equal to + * the required version, or false if this version of DataTales is not + * suitable * @static * @dtopt API-Static * * @example - * alert( $.fn.dataTable.fnVersionCheck( '1.9.0' ) ); + * alert( $.fn.dataTable.versionCheck( '1.9.0' ) ); */ - DataTable.fnVersionCheck = function( sVersion ) + DataTable.versionCheck = DataTable.fnVersionCheck = function( version ) { - var aThis = DataTable.ext.sVersion.split('.'); - var aThat = sVersion.split('.'); + var aThis = DataTable.version.split('.'); + var aThat = version.split('.'); var iThis, iThat; - - for ( var i=0, iLen=aThat.length ; i iThat; } + return true; }; /** - * Check if a TABLE node is a DataTable table already or not. - * @param {node} nTable The TABLE node to check if it is a DataTable or not (note that other - * node types can be passed in, but will always return false). + * Check if a `` node is a DataTable table already or not. + * + * @param {node} table The `table` node to check if it is a DataTable or not + * (note that other node types can be passed in, but will always return + * false). * @returns {boolean} true the table given is a DataTable, or false otherwise * @static * @dtopt API-Static * * @example * var ex = document.getElementById('example'); - * if ( ! $.fn.DataTable.fnIsDataTable( ex ) ) { + * if ( ! $.fn.DataTable.isDataTable( ex ) ) { * $(ex).dataTable(); * } */ - DataTable.fnIsDataTable = function ( nTable ) + DataTable.isDataTable = DataTable.fnIsDataTable = function ( table ) { var o = DataTable.settings; - for ( var i=0 ; i 0 ) { - * $(table).dataTable().fnAdjustColumnSizing(); - * } + * $.each( $.fn.dataTable.fnTables(true), function () { + * $(table).DataTable().columns.adjust(); + * } ); */ - DataTable.fnTables = function ( bVisible ) + DataTable.tables = DataTable.fnTables = function ( visible ) { var out = []; jQuery.each( DataTable.settings, function (i, o) { - if ( !bVisible || (bVisible === true && $(o.nTable).is(':visible')) ) - { + if ( !visible || (visible === true && $(o.nTable).is(':visible')) ) { out.push( o.nTable ); } } );