diff --git a/select2.js b/select2.js index 3067809d..fb09c1c3 100644 --- a/select2.js +++ b/select2.js @@ -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);