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:
@@ -143,7 +143,7 @@
|
|||||||
|
|
||||||
Danbooru.Post.nav_prev = function() {
|
Danbooru.Post.nav_prev = function() {
|
||||||
if ($("#search-seq-nav").length) {
|
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) {
|
if (href) {
|
||||||
location.href = href;
|
location.href = href;
|
||||||
}
|
}
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
|
|
||||||
Danbooru.Post.nav_next = function() {
|
Danbooru.Post.nav_next = function() {
|
||||||
if ($("#search-seq-nav").length) {
|
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;
|
location.href = href;
|
||||||
} else {
|
} else {
|
||||||
var href = $("#pool-nav a.active[rel=next], #favgroup-nav a.active[rel=next]").attr("href");
|
var href = $("#pool-nav a.active[rel=next], #favgroup-nav a.active[rel=next]").attr("href");
|
||||||
|
|||||||
Reference in New Issue
Block a user