1
0
mirror of synced 2024-11-25 22:36:03 +03:00
This commit is contained in:
Igor Vaynberg 2013-03-07 16:03:56 -08:00
parent 3acecf1b9d
commit 814e8b5bed

View File

@ -1321,7 +1321,7 @@ the specific language governing permissions and limitations under the Apache Lic
self.opts.populateResults.call(this, results, data.results, {term: term, page: page, context:context});
self.postprocessResults(data, false, false);
if (data.more===true) {
more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1));
window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);
@ -2703,7 +2703,7 @@ the specific language governing permissions and limitations under the Apache Lic
maximumSelectionSize: 0,
id: function (e) { return e.id; },
matcher: function(term, text) {
return text.toUpperCase().indexOf(term.toUpperCase()) >= 0;
return (''+text).toUpperCase().indexOf((''+term).toUpperCase()) >= 0;
},
separator: ",",
tokenSeparators: [],