mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
New: dt-init ajax.data
can return a string to be used as the request body. This is useful for submitting a JSON string to the server.
* This is actually compatible with 1.10.0+ but was never documented (it wasn't an intended feature, but rather an implementation detail. It is rather useful though, so is now documented.
This commit is contained in:
parent
d65dd47fe6
commit
744155653e
@ -1 +1 @@
|
||||
d7a9a1e813f273d6767fd5b140b6017978e7f584
|
||||
381e161bffbd1ae65e07d0a6eaca08b5237f09b2
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -2424,7 +2424,7 @@
|
||||
ajaxData( data ) : // fn can manipulate data or return an object
|
||||
ajaxData; // object or array to merge
|
||||
|
||||
// If the function returned an object, use that alone
|
||||
// If the function returned something, use that alone
|
||||
data = $.isFunction( ajaxData ) && newData ?
|
||||
newData :
|
||||
$.extend( true, data, newData );
|
||||
|
Loading…
x
Reference in New Issue
Block a user