mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Dev: New .datatables-commit-sync
which is going to be used by the
build and commit scripts to keep the src and build repos in sync. Dev: Update the dataTables main file to the latest build which was accedentally committed. Just a couple of little dev fixes - no API changes.
This commit is contained in:
parent
3ed88a9c87
commit
e8c3a0b96a
1
.datatables-commit-sync
Normal file
1
.datatables-commit-sync
Normal file
@ -0,0 +1 @@
|
|||||||
|
cc2d149be7f7b8862641a4a38d87cbda6acad325
|
32
media/js/jquery.dataTables.js
vendored
32
media/js/jquery.dataTables.js
vendored
@ -2148,6 +2148,7 @@
|
|||||||
*/
|
*/
|
||||||
function _fnAjaxDataSrc ( oSettings, json )
|
function _fnAjaxDataSrc ( oSettings, json )
|
||||||
{
|
{
|
||||||
|
// @todo data and callback to aaData
|
||||||
var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?
|
var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?
|
||||||
oSettings.ajax.dataSrc :
|
oSettings.ajax.dataSrc :
|
||||||
oSettings.sAjaxDataProp; // Compatibility with 1.9-.
|
oSettings.sAjaxDataProp; // Compatibility with 1.9-.
|
||||||
@ -2370,14 +2371,14 @@
|
|||||||
force = true;
|
force = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if any of the rows were invalidated
|
||||||
|
invalidated = _fnFilterData( settings );
|
||||||
|
|
||||||
// If the input is blank - we just want the full data set
|
// If the input is blank - we just want the full data set
|
||||||
if ( input.length <= 0 ) {
|
if ( input.length <= 0 ) {
|
||||||
settings.aiDisplay = displayMaster.slice();
|
settings.aiDisplay = displayMaster.slice();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Check if any of the rows were invalidated
|
|
||||||
invalidated = _fnFilterData( settings );
|
|
||||||
|
|
||||||
// New search - start from the master array
|
// New search - start from the master array
|
||||||
if ( invalidated ||
|
if ( invalidated ||
|
||||||
force ||
|
force ||
|
||||||
@ -2483,7 +2484,7 @@
|
|||||||
filterData.push( cellData );
|
filterData.push( cellData );
|
||||||
}
|
}
|
||||||
|
|
||||||
row._aFilterCells = filterData;
|
row._aFilterData = filterData;
|
||||||
row._sFilterRow = filterData.join(' ');
|
row._sFilterRow = filterData.join(' ');
|
||||||
wasInvalidated = true;
|
wasInvalidated = true;
|
||||||
}
|
}
|
||||||
@ -4200,7 +4201,7 @@
|
|||||||
|
|
||||||
if ( ! row._aSortData[idx] || customSort ) {
|
if ( ! row._aSortData[idx] || customSort ) {
|
||||||
cellData = customSort ?
|
cellData = customSort ?
|
||||||
customData : // If there was a custom sort function, use data from there
|
customData[i] : // If there was a custom sort function, use data from there
|
||||||
_fnGetCellData( settings, i, idx, 'sort' );
|
_fnGetCellData( settings, i, idx, 'sort' );
|
||||||
|
|
||||||
row._aSortData[ idx ] = formatter ?
|
row._aSortData[ idx ] = formatter ?
|
||||||
@ -4976,7 +4977,7 @@
|
|||||||
api.row( src ).data();
|
api.row( src ).data();
|
||||||
}
|
}
|
||||||
|
|
||||||
return api.data();
|
return api.data().toArray();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -6192,7 +6193,7 @@
|
|||||||
var a = [];
|
var a = [];
|
||||||
|
|
||||||
if ( _arrayProto.filter ) {
|
if ( _arrayProto.filter ) {
|
||||||
a = _arrayProto.filter( this, fn, this );
|
a = _arrayProto.filter.call( this, fn, this );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Compatibility for browsers without EMCA-252-5 (JS 1.6)
|
// Compatibility for browsers without EMCA-252-5 (JS 1.6)
|
||||||
@ -6312,7 +6313,7 @@
|
|||||||
var a = [];
|
var a = [];
|
||||||
|
|
||||||
if ( _arrayProto.map ) {
|
if ( _arrayProto.map ) {
|
||||||
a = _arrayProto.map( this, fn, this );
|
a = _arrayProto.map.call( this, fn, this );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Compatibility for browsers without EMCA-252-5 (JS 1.6)
|
// Compatibility for browsers without EMCA-252-5 (JS 1.6)
|
||||||
@ -7116,7 +7117,7 @@
|
|||||||
a.push( displayFiltered[i] );
|
a.push( displayFiltered[i] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( order == 'current' ) {
|
else if ( order == 'current' || order == 'applied' ) {
|
||||||
a = filter == 'none' ?
|
a = filter == 'none' ?
|
||||||
displayMaster.slice() : // no filter
|
displayMaster.slice() : // no filter
|
||||||
filter == 'applied' ?
|
filter == 'applied' ?
|
||||||
@ -7751,6 +7752,15 @@
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
_api.registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {
|
||||||
|
return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
|
||||||
|
return _pluck_order( settings.aoData, rows,
|
||||||
|
type === 'filter' ? '_aFilterData' : '_aSortData', column
|
||||||
|
);
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
_api.registerPlural( 'columns().nodes()', 'columns().nodes()', function () {
|
_api.registerPlural( 'columns().nodes()', 'columns().nodes()', function () {
|
||||||
return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
|
return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
|
||||||
return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
|
return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
|
||||||
@ -8890,12 +8900,12 @@
|
|||||||
* @default null
|
* @default null
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
"_aFilterCells": null,
|
"_aFilterData": null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filtering data cache. This is the same as the cell filtering cache, but
|
* Filtering data cache. This is the same as the cell filtering cache, but
|
||||||
* in this case a string rather than an array. This is easily computed with
|
* in this case a string rather than an array. This is easily computed with
|
||||||
* a join on `_aFilterCells`, but is provided as a cache so the join isn't
|
* a join on `_aFilterData`, but is provided as a cache so the join isn't
|
||||||
* needed on every search (memory traded for performance)
|
* needed on every search (memory traded for performance)
|
||||||
* @type array
|
* @type array
|
||||||
* @default null
|
* @default null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user