Fix A & D shortcut JavaScript for post search nav

Replaced the operator with one for detecting a single space delimited value in an attribute.
This commit is contained in:
Moebius-Strip
2016-03-07 02:32:51 -05:00
parent 278fe3ca20
commit 74872c3cb6

View File

@@ -143,7 +143,7 @@
Danbooru.Post.nav_prev = function() {
if ($("#search-seq-nav").length) {
var href = $("#search-seq-nav a[rel=prev]").attr("href");
var href = $("#search-seq-nav a[rel~=prev]").attr("href");
if (href) {
location.href = href;
}
@@ -157,7 +157,7 @@
Danbooru.Post.nav_next = function() {
if ($("#search-seq-nav").length) {
var href = $("#search-seq-nav a[rel=next]").attr("href");
var href = $("#search-seq-nav a[rel~=next]").attr("href");
location.href = href;
} else {
var href = $("#pool-nav a.active[rel=next], #favgroup-nav a.active[rel=next]").attr("href");