Fixed new search kept page number
This commit is contained in:
parent
253cac4cc1
commit
26d4686795
2 changed files with 2 additions and 0 deletions
|
@ -223,6 +223,7 @@ App.Presenters.PostListPresenter = function(
|
|||
function updateSearch() {
|
||||
$searchInput.blur();
|
||||
params.query.query = $searchInput.val().trim();
|
||||
params.query.page = 1;
|
||||
pagerPresenter.setQuery(params.query);
|
||||
}
|
||||
|
||||
|
|
|
@ -103,6 +103,7 @@ App.Presenters.TagListPresenter = function(
|
|||
function updateSearch() {
|
||||
$searchInput.blur();
|
||||
params.query.query = $searchInput.val().trim();
|
||||
params.query.page = 1;
|
||||
pagerPresenter.setQuery(params.query);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue