load searchable locations less often if there is a problem

This commit is contained in:
Laura Klünder 2017-12-26 23:03:33 +01:00
parent 95def7bfb9
commit ed43b75c6e

View file

@ -50,7 +50,7 @@ c3nav = {
},
load_searchable_locations: function() {
$.getJSON('/api/locations/?searchable', c3nav._searchable_locations_loaded).fail(function() {
window.setTimeout(c3nav.load_searchable_locations, 5000);
window.setTimeout(c3nav.load_searchable_locations, 120000);
});
},
_searchable_locations_loaded: function(data) {