1
0
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:
Allan Jardine 2013-12-11 10:57:25 +00:00
parent 1daaf4e473
commit c6d8545319
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
a681f6527ee2d760681d23120eb27229b69ade03
fe33c27d062b6ed1764a30011309e7e5abd39404

View File

@ -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 );
} );
} );