mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Improved API responses
This commit is contained in:
@ -71,10 +71,7 @@ App.Pager = function(
|
||||
var totalRecords = response.json.totalRecords;
|
||||
totalPages = Math.ceil(totalRecords / pageSize);
|
||||
|
||||
resolve({
|
||||
entities: response.json.data,
|
||||
totalRecords: totalRecords,
|
||||
totalPages: totalPages});
|
||||
resolve(response);
|
||||
|
||||
}).fail(function(response) {
|
||||
reject(response);
|
||||
|
Reference in New Issue
Block a user