mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Fix: Ajax callback function wasn't being called when server-side
processing was enabled (ajax.reload() and ajax.url().load())
This commit is contained in:
parent
c12b50daef
commit
6968422b42
@ -1 +1 @@
|
||||
9e579f5fd864d5e104517a3b00716aac43396913
|
||||
636d523ddba3c57812372a7488fadaf611b92386
|
||||
|
13
media/js/jquery.dataTables.js
vendored
13
media/js/jquery.dataTables.js
vendored
@ -7108,10 +7108,17 @@
|
||||
}
|
||||
|
||||
_fnReDraw( settings, holdPosition );
|
||||
} );
|
||||
}
|
||||
|
||||
if ( callback ) {
|
||||
callback( json );
|
||||
}
|
||||
// Use the draw event to trigger a callback, regardless of if it is an async
|
||||
// or sync draw
|
||||
if ( callback ) {
|
||||
var api = new _Api( settings );
|
||||
|
||||
api.one( 'draw', function () {
|
||||
console.log( api.ajax.json() );
|
||||
callback( api.ajax.json() );
|
||||
} );
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user