mirror of
https://github.com/DataTables/DataTables.git
synced 2026-04-25 03:00:08 -04:00
Fix - example: Server-side pipelining didn't work when all data is requested
- Although this mitigates any benefits of using server-side processing it is something that should be handled. - Thanks Hormah for pointing this out.
This commit is contained in:
@@ -111,7 +111,9 @@ $.fn.dataTable.pipeline = function ( opts ) {
|
||||
if ( cacheLower != drawStart ) {
|
||||
json.data.splice( 0, drawStart-cacheLower );
|
||||
}
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
if ( requestLength >= -1 ) {
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
}
|
||||
|
||||
drawCallback( json );
|
||||
}
|
||||
@@ -289,7 +291,9 @@ $.fn.dataTable.pipeline = function ( opts ) {
|
||||
if ( cacheLower != drawStart ) {
|
||||
json.data.splice( 0, drawStart-cacheLower );
|
||||
}
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
if ( requestLength >= -1 ) {
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
}
|
||||
|
||||
drawCallback( json );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user