Skip to content

Commit af964bd

Browse files
author
Igor Vaynberg
committed
shorten function name for loadingMore()
1 parent 663ba12 commit af964bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@
560560
},
561561
formatNoMatches: function () { return "No matches found"; },
562562
formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; },
563-
formatLoadingNextSet: function (pageNumber) { return "Loading more results..."; },
563+
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
564564
minimumResultsForSearch: 0,
565565
minimumInputLength: 0,
566566
id: function (e) { return e.id; },
@@ -889,7 +889,7 @@
889889
postRender();
890890

891891
if (data.more === true) {
892-
results.children().filter(":last").append("<li class='select2-more-results'>" + opts.formatLoadingNextSet(this.resultsPage) + "</li>");
892+
results.children().filter(":last").append("<li class='select2-more-results'>" + opts.formatLoadMore(this.resultsPage) + "</li>");
893893
}
894894

895895
this.postprocessResults(data, initial);

0 commit comments

Comments
 (0)