mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Api: ajax.url().load() should also have a resetPaging option
- ajax.reload() and ajax.url().load() now have the same options
This commit is contained in:
parent
1daaf4e473
commit
c6d8545319
@ -1 +1 @@
|
||||
a681f6527ee2d760681d23120eb27229b69ade03
|
||||
fe33c27d062b6ed1764a30011309e7e5abd39404
|
||||
|
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -7182,11 +7182,11 @@
|
||||
*
|
||||
* @returns {DataTables.Api} this
|
||||
*/
|
||||
_api_register( 'ajax.url().load()', function ( callback ) {
|
||||
_api_register( 'ajax.url().load()', function ( callback, resetPaging ) {
|
||||
// Same as a reload, but makes sense to present it for easy access after a
|
||||
// url change
|
||||
return this.iterator( 'table', function ( ctx ) {
|
||||
__reload( ctx, undefined, callback );
|
||||
__reload( ctx, resetPaging===false, callback );
|
||||
} );
|
||||
} );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user