You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param options.params parameter map for the transport ajax call, can contain such options as cache, jsonpCallback, etc. see $.ajax
362
363
* @param options.transport function that will be used to execute the ajax request. must be compatible with parameters supported by $.ajax
363
364
* @param options.url url for the data
364
365
* @param options.data a function(searchTerm, pageNumber, context) that should return an object containing query string parameters for the above url.
365
366
* @param options.dataType request data type: ajax, jsonp, other datatatypes supported by jQuery's $.ajax function or the transport function if specified
366
-
* @param options.cache set to true to disable jquery's cache-busting url parameters
367
-
* @param options.jsonpCallback set to override the jquery callback function - useful in conjunction with options.cache
368
-
* @param options.traditional a boolean flag that should be true if you wish to use the traditional style of param serialization for the ajax request
369
367
* @param options.quietMillis (optional) milliseconds to wait before making the ajaxRequest, helps debounce the ajax function if invoked too often
370
368
* @param options.results a function(remoteData, pageNumber) that converts data returned form the remote request to the format expected by Select2.
371
369
* The expected format is an object containing the following keys:
@@ -388,11 +386,15 @@ the specific language governing permissions and limitations under the Apache Lic
388
386
varrequestNumber=requestSequence,// this request's sequence number
389
387
data=options.data,// ajax data function
390
388
url=ajaxUrl,// ajax url string or function
391
-
transport=options.transport||$.ajax,
392
-
cache=options.cache||false,
393
-
jsonpCallback=options.jsonpCallback||undefined,
394
-
type=options.type||'GET',// set type of request (GET or POST)
0 commit comments