diff --git a/select2.js b/select2.js index be95a904..9d167580 100755 --- a/select2.js +++ b/select2.js @@ -560,6 +560,7 @@ }, formatNoMatches: function () { return "No matches found"; }, formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; }, + formatLoadingNextSet: function (pageNumber) { return "Loading more results..."; }, minimumResultsForSearch: 0, minimumInputLength: 0, id: function (e) { return e.id; }, @@ -888,7 +889,7 @@ postRender(); if (data.more === true) { - results.children().filter(":last").append("
  • Loading more results...
  • "); + results.children().filter(":last").append("
  • " + opts.formatLoadingNextSet(this.resultsPage) + "
  • "); } this.postprocessResults(data, initial);