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
Copy file name to clipboardExpand all lines: select2.js
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -277,6 +277,7 @@
277
277
* @param options.url url for the data
278
278
* @param options.data a function(searchTerm, pageNumber, context) that should return an object containing query string parameters for the above url.
279
279
* @param options.dataType request data type: ajax, jsonp, other datatatypes supported by jQuery's $.ajax function or the transport function if specified
280
+
* @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
280
281
* @param options.quietMillis (optional) milliseconds to wait before making the ajaxRequest, helps debounce the ajax function if invoked too often
281
282
* @param options.results a function(remoteData, pageNumber) that converts data returned form the remote request to the format expected by Select2.
282
283
* The expected format is an object containing the following keys:
@@ -297,6 +298,7 @@
297
298
varrequestNumber=requestSequence,// this request's sequence number
298
299
data=options.data,// ajax data function
299
300
transport=options.transport||$.ajax,
301
+
traditional=options.traditional||false,
300
302
type=options.type||'GET';// set type of request (GET or POST)
0 commit comments