forked from e621ng/e621ng
[Pagination] Fix the keyboard shortcuts (#904)
This commit is contained in:
parent
ac38fd11e7
commit
54c490b573
@ -87,12 +87,12 @@ module PaginationHelper
|
||||
html = "".html_safe
|
||||
|
||||
if disabled
|
||||
html << tag.span(class: "next", id: "paginator-next", data: { shortcut: "a left" }) do
|
||||
html << tag.span(class: "next", id: "paginator-next", data: { shortcut: "d right" }) do
|
||||
concat tag.span("Next")
|
||||
concat svg_icon(:chevron_right)
|
||||
end
|
||||
else
|
||||
html << link_to(link, class: "next", id: "paginator-prev", rel: "next", data: { shortcut: "a left" }) do
|
||||
html << link_to(link, class: "next", id: "paginator-next", rel: "next", data: { shortcut: "d right" }) do
|
||||
concat tag.span("Next")
|
||||
concat svg_icon(:chevron_right)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user