1
0
mirror of synced 2024-11-26 14:56:07 +03:00

correctly filter out selected options out of elements loaded by infinite scroll. fixes #881

This commit is contained in:
Igor Vaynberg 2013-03-01 09:11:45 -08:00
parent 27f6c0198a
commit debbcfcede

View File

@ -1317,7 +1317,8 @@ 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);
if (data.more===true) {
more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1));
window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);