Prettier returing on API

- Prettier returns on API
- Upped to version 4
This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-02 10:47:06 +01:00
parent 7fda70965f
commit c70b6a0ea9
4 changed files with 247 additions and 155 deletions

View File

@@ -254,7 +254,7 @@ var Frontpage = {
url: add + "/api/frontpages",
method: "get",
success: function(response){
Frontpage.frontpage_function(response);
Frontpage.frontpage_function(response.results);
},
error: function() {
Materialize.toast("Couldn't fetch lists, trying again in 3 seconds..", 3000, "red lighten connect_error");