Fix keyboard navigation in pools (#3238).

Don't display the search navigation bar when browsing pools. Doing so
breaks the A/D keyboard shortcuts because the search navigator takes
precedence over the pool navigator.

https://danbooru.donmai.us/forum_topics/9127?page=195#forum_post_134297
This commit is contained in:
evazion
2017-08-04 19:28:36 -05:00
parent 7b96d9dcd4
commit 40e006f7cb
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<% if (position == "bottom" && CurrentUser.user.new_post_navigation_layout) || (position == "top" && !CurrentUser.user.new_post_navigation_layout) %>
<div id="nav-links" class="ui-corner-all nav-notice">
<% if post.presenter.has_sequential_navigation?(self) %>
<% if post.presenter.has_sequential_navigation?(params) %>
<%= render "posts/partials/show/search_seq", :post => post %>
<% end %>