Adding timeout for usual get-requests when not authenticated with a token

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-02 15:03:27 +02:00
parent b537aa1af6
commit aa74a10305
2 changed files with 222 additions and 143 deletions

View File

@@ -283,7 +283,10 @@ var Frontpage = {
Frontpage.frontpage_function();
/*Helper.ajax({
url: add + "/api/frontpages",
method: "get",
method: "POST",
data: {
token: zoff_api_token,
},
success: function(response){
response = JSON.parse(response);
Frontpage.frontpage_function(response.results);