mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed "search" button in post list
This commit is contained in:
@ -70,6 +70,7 @@ App.Presenters.PostListPresenter = function(
|
||||
|
||||
$searchInput.val(searchArgs.query);
|
||||
$searchInput.keydown(searchInputKeyPressed);
|
||||
$el.find('form').submit(searchFormSubmitted);
|
||||
|
||||
keyboard.keyup('p', function() {
|
||||
$el.find('.posts li a').eq(0).focus();
|
||||
@ -101,7 +102,15 @@ App.Presenters.PostListPresenter = function(
|
||||
if (e.which !== KEY_RETURN) {
|
||||
return;
|
||||
}
|
||||
updateSearch();
|
||||
}
|
||||
|
||||
function searchFormSubmitted(e) {
|
||||
e.preventDefault();
|
||||
updateSearch();
|
||||
}
|
||||
|
||||
function updateSearch() {
|
||||
$searchInput.blur();
|
||||
pagerPresenter.setSearchParams({
|
||||
query: $searchInput.val(),
|
||||
|
Reference in New Issue
Block a user