1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Fix evaluation of formatLoadMore

This commit is contained in:
Coleman Watts 2014-02-14 17:14:12 -08:00
parent 0636e42cbc
commit 9460b0c9b6

View File

@ -1570,7 +1570,7 @@ the specific language governing permissions and limitations under the Apache Lic
self.postprocessResults(data, false, false); self.postprocessResults(data, false, false);
if (data.more===true) { if (data.more===true) {
more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1)); more.detach().appendTo(results).text(evaluate(self.opts.formatLoadMore, page+1));
window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10); window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);
} else { } else {
more.remove(); more.remove();