mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Update - example: Add method option to SSP pipeline
This commit is contained in:
parent
8186f9378c
commit
10634dd733
@ -1 +1 @@
|
||||
d4aebc0ff333090bf3b1cf840ceeabeb15595203
|
||||
747b47fa62dea0dbf7261943a63d68cf00f5ab3a
|
||||
|
@ -25,10 +25,11 @@
|
||||
$.fn.dataTable.pipeline = function ( opts ) {
|
||||
// Configuration options
|
||||
var conf = $.extend( {
|
||||
pages: 5, // number of pages to cache
|
||||
url: '', // script url
|
||||
data: null // function or object with parameters to send to the server
|
||||
// matching how `ajax.data` works in DataTables
|
||||
pages: 5, // number of pages to cache
|
||||
url: '', // script url
|
||||
data: null, // function or object with parameters to send to the server
|
||||
// matching how `ajax.data` works in DataTables
|
||||
method: 'GET' // Ajax HTTP method
|
||||
}, opts );
|
||||
|
||||
// Private variables for storing the cache
|
||||
@ -90,6 +91,7 @@ $.fn.dataTable.pipeline = function ( opts ) {
|
||||
}
|
||||
|
||||
settings.jqXHR = $.ajax( {
|
||||
"type": conf.method,
|
||||
"url": conf.url,
|
||||
"data": request,
|
||||
"dataType": "json",
|
||||
@ -200,10 +202,11 @@ $(document).ready(function() {
|
||||
$.fn.dataTable.pipeline = function ( opts ) {
|
||||
// Configuration options
|
||||
var conf = $.extend( {
|
||||
pages: 5, // number of pages to cache
|
||||
url: '', // script url
|
||||
data: null // function or object with parameters to send to the server
|
||||
// matching how `ajax.data` works in DataTables
|
||||
pages: 5, // number of pages to cache
|
||||
url: '', // script url
|
||||
data: null, // function or object with parameters to send to the server
|
||||
// matching how `ajax.data` works in DataTables
|
||||
method: 'GET' // Ajax HTTP method
|
||||
}, opts );
|
||||
|
||||
// Private variables for storing the cache
|
||||
@ -265,6 +268,7 @@ $.fn.dataTable.pipeline = function ( opts ) {
|
||||
}
|
||||
|
||||
settings.jqXHR = $.ajax( {
|
||||
"type": conf.method,
|
||||
"url": conf.url,
|
||||
"data": request,
|
||||
"dataType": "json",
|
||||
|
Loading…
x
Reference in New Issue
Block a user