Fix ajax-field 'quietMillis' to 'delay'.

See select2 documentation at https://select2.github.io/options.html#ajax
This commit is contained in:
Dominik Hurnaus
2016-03-24 13:47:37 +01:00
parent a44529fcb1
commit 74fe6ff6ac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ $("#e7").select2({
ajax: {
url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json",
dataType: 'jsonp',
quietMillis: 100,
delay: 100,
data: function (term, page) {
return {
q: term,
+1 -1
View File
@@ -25,7 +25,7 @@ interface Select2AjaxOptions {
*/
url?: any;
dataType?: string;
quietMillis?: number;
delay?: number;
cache?: boolean;
data?: (term: string, page: number, context: any) => any;
results?: (term: any, page: number, context: any) => any;