shorten function name for loadingMore()
This commit is contained in:
parent
663ba1215f
commit
af964bdbad
@ -560,7 +560,7 @@
|
|||||||
},
|
},
|
||||||
formatNoMatches: function () { return "No matches found"; },
|
formatNoMatches: function () { return "No matches found"; },
|
||||||
formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; },
|
formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; },
|
||||||
formatLoadingNextSet: function (pageNumber) { return "Loading more results..."; },
|
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
|
||||||
minimumResultsForSearch: 0,
|
minimumResultsForSearch: 0,
|
||||||
minimumInputLength: 0,
|
minimumInputLength: 0,
|
||||||
id: function (e) { return e.id; },
|
id: function (e) { return e.id; },
|
||||||
@ -889,7 +889,7 @@
|
|||||||
postRender();
|
postRender();
|
||||||
|
|
||||||
if (data.more === true) {
|
if (data.more === true) {
|
||||||
results.children().filter(":last").append("<li class='select2-more-results'>" + opts.formatLoadingNextSet(this.resultsPage) + "</li>");
|
results.children().filter(":last").append("<li class='select2-more-results'>" + opts.formatLoadMore(this.resultsPage) + "</li>");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.postprocessResults(data, initial);
|
this.postprocessResults(data, initial);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user