Skip to content

Commit a439496

Browse files
author
Tomas Kirda
committed
Merge pull request devbridge#47 from gedbac/master
Parameters were passed to method 'onSearchStart'
2 parents 0add15e + 91df66d commit a439496

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jquery.autocomplete.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
onSearchComplete: noop,
9090
containerClass: 'autocomplete-suggestions',
9191
tabDisabled: false,
92-
dataType : 'text',
92+
dataType: 'text',
9393
lookupFilter: function (suggestion, originalQuery, queryLowerCase) {
9494
return suggestion.value.toLowerCase().indexOf(queryLowerCase) !== -1;
9595
},
@@ -244,7 +244,7 @@
244244
}
245245

246246
offset = that.el.offset();
247-
247+
248248
$(that.suggestionsContainer).css({
249249
top: (offset.top + that.el.outerHeight()) + 'px',
250250
left: offset.left + 'px'
@@ -401,8 +401,8 @@
401401
that.suggestions = response.suggestions;
402402
that.suggest();
403403
} else if (!that.isBadQuery(q)) {
404-
options.onSearchStart.call(that.element, q);
405404
options.params[options.paramName] = q;
405+
options.onSearchStart.call(that.element, options.params);
406406
$.ajax({
407407
url: options.serviceUrl,
408408
data: options.params,
@@ -631,4 +631,4 @@
631631
}
632632
});
633633
};
634-
}));
634+
}));

0 commit comments

Comments
 (0)