Fix catalog image not working inside threads
This commit is contained in:
parent
bc77d51d54
commit
9244cafe9c
@ -4,7 +4,12 @@ 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
|
||||||
var catalog_url = 'catalog.html';
|
var catalog_url = 'catalog.html';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
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]
|
||||||
var subtitle = document.getElementsByClassName('subtitle')[0];
|
var subtitle = document.getElementsByClassName('subtitle')[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user