Fix catalog image not working inside threads

This commit is contained in:
ctrlcctrlv 2013-08-11 13:17:21 +00:00
parent bc77d51d54
commit 9244cafe9c

View File

@ -4,7 +4,12 @@ function catalog() {
var board = $("input[name='board']");
if (board.length>0) {
if (window.location.href.indexOf("/res/")==-1){ //if we are inside a thread
var catalog_url = 'catalog.html';
}
else {
var catalog_url = '../catalog.html';
}
var pages = document.getElementsByClassName('pages')[0];
var bottom = document.getElementsByClassName('boardlist bottom')[0]
var subtitle = document.getElementsByClassName('subtitle')[0];