1
0
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:
Allan Jardine 2015-01-11 16:27:15 +00:00
parent d65dd47fe6
commit 744155653e
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
d7a9a1e813f273d6767fd5b140b6017978e7f584
381e161bffbd1ae65e07d0a6eaca08b5237f09b2

View File

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