From 9ab86f169506293a45fbd972e55724dd5ba8f979 Mon Sep 17 00:00:00 2001 From: thereloaded Date: Thu, 22 May 2014 12:09:59 +0200 Subject: [PATCH 1/2] updated ajax results parameter looking at the source, the query.context is not passed to results, so i replaced it with the additional query parameter --- select2-latest.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2-latest.html b/select2-latest.html index b288a9c4..bd6e8728 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -1560,7 +1560,7 @@ $("#select").select2({ ParameterTypeDescription dataobjectRetrieved data. pageintPage number that was passed into the data function above. - contextobjectSee options.context parameter to the query function above. + queryobjectThe query object used to request this set of results. <returns>objectResults object. See "options.callback" in the "query" function for format. From 0a3e2d1fe83de3a5424cbb8a41fba61cfc3a02f2 Mon Sep 17 00:00:00 2001 From: thereloaded Date: Mon, 26 May 2014 10:08:06 +0200 Subject: [PATCH 2/2] updated method signature of ajax results --- select2-latest.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2-latest.html b/select2-latest.html index bd6e8728..a74948fb 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -1555,7 +1555,7 @@ $("#select").select2({ resultsfunction Function used to build the query results object from the ajax response -
results(data, page)
+
results(data, page, query)
ParameterTypeDescription
dataobjectRetrieved data.