mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-02 19:17:21 +01:00
Fixes catalog href on a potential /res/ board
This commit is contained in:
parent
b7592c3eec
commit
ab2a83d194
@ -16,11 +16,11 @@ function catalog() {
|
|||||||
var board = $("input[name='board']");
|
var board = $("input[name='board']");
|
||||||
|
|
||||||
if (board.length>0) {
|
if (board.length>0) {
|
||||||
if (window.location.href.indexOf("/res/")==-1){ //if we are inside a thread
|
if (window.location.pathname.indexOf("/res/")>0){ //if we are inside a thread
|
||||||
var catalog_url = 'catalog.html';
|
var catalog_url = '../catalog.html';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var catalog_url = '../catalog.html';
|
var catalog_url = 'catalog.html';
|
||||||
}
|
}
|
||||||
var pages = document.getElementsByClassName('pages')[0];
|
var pages = document.getElementsByClassName('pages')[0];
|
||||||
var bottom = document.getElementsByClassName('boardlist bottom')[0]
|
var bottom = document.getElementsByClassName('boardlist bottom')[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user