1
0
mirror of synced 2025-02-21 14:33:15 +03:00

make query() aware of the element select2 is attached to. fixes #561

This commit is contained in:
Igor Vaynberg 2013-02-09 20:22:21 -08:00
parent ef8c49f85f
commit f15583a555

View File

@ -1288,6 +1288,7 @@ the specific language governing permissions and limitations under the Apache Lic
if (below <= this.opts.loadMorePadding) { if (below <= this.opts.loadMorePadding) {
more.addClass("select2-active"); more.addClass("select2-active");
this.opts.query({ this.opts.query({
element: this.opts.element,
term: term, term: term,
page: page, page: page,
context: context, context: context,
@ -1382,6 +1383,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.resultsPage = 1; this.resultsPage = 1;
opts.query({ opts.query({
element: opts.element,
term: search.val(), term: search.val(),
page: this.resultsPage, page: this.resultsPage,
context: null, context: null,