Skip to content
Snippets Groups Projects
Commit b7fc9cc0 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added maximum execution for loadmore

parent 40601df5
No related branches found
No related tags found
2 merge requests!1712Development,!1684Development
......@@ -69,10 +69,14 @@ function loadMoreResults() {
updateUrl = updateUrl.replace("/meta.ger3", "/loadMore");
var currentlyLoading = false;
var counter = 0;
// Regularily check for not yet delivered Results
var resultLoader = window.setInterval(function () {
if (!currentlyLoading) {
counter++;
if (count >= 10) {
clearInterval(resultLoader);
}
currentlyLoading = true;
$.getJSON(updateUrl, function (data) {
// Check if we can clear the interval (once every searchengine has answered)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment