1
0
mirror of synced 2025-02-04 14:19:23 +03:00
This commit is contained in:
Igor Vaynberg 2013-03-19 08:34:34 -07:00
parent 67fb12dc9e
commit 45559654bc

View File

@ -1361,6 +1361,8 @@ the specific language governing permissions and limitations under the Apache Lic
// prevent duplicate queries against the same term // prevent duplicate queries against the same term
if (initial !== true && lastTerm && equal(term, lastTerm)) return; if (initial !== true && lastTerm && equal(term, lastTerm)) return;
$.data(this.container, "select2-last-term", term);
// if the search is currently hidden we do not alter the results // if the search is currently hidden we do not alter the results
if (initial !== true && (this.showSearchInput === false || !this.opened())) { if (initial !== true && (this.showSearchInput === false || !this.opened())) {
return; return;
@ -1418,8 +1420,6 @@ the specific language governing permissions and limitations under the Apache Lic
this.resultsPage = 1; this.resultsPage = 1;
$.data(this.container, "select2-last-term", term);
opts.query({ opts.query({
element: opts.element, element: opts.element,
term: search.val(), term: search.val(),