mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Removed PathJS dependency; refactored routing
This commit is contained in:
@ -51,7 +51,8 @@ App.Pager = function(
|
||||
|
||||
function setSearchParams(newSearchParams) {
|
||||
setPage(1);
|
||||
searchParams = newSearchParams;
|
||||
searchParams = _.extend({}, newSearchParams);
|
||||
delete searchParams.page;
|
||||
}
|
||||
|
||||
function retrieve() {
|
||||
@ -64,7 +65,8 @@ App.Pager = function(
|
||||
|
||||
resolve({
|
||||
entities: response.json.data,
|
||||
totalRecords: totalRecords});
|
||||
totalRecords: totalRecords,
|
||||
totalPages: totalPages});
|
||||
|
||||
}).fail(function(response) {
|
||||
reject(response);
|
||||
|
Reference in New Issue
Block a user