From 663ba1215f2a4bd96fd8331b4342720da04c8d5e Mon Sep 17 00:00:00 2001 From: Aziz Gazanchiyan Date: Mon, 18 Jun 2012 18:08:48 +0300 Subject: [PATCH] Loading next page message formatting implemented, so it could also have localization Signed-off-by: Igor Vaynberg --- select2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);