1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-28 19:15:57 +01:00

Catalog fix for threads

This commit is contained in:
8chan Admin 2014-04-06 00:47:18 +00:00
parent 195c587dc0
commit e2b3ba02f0

View File

@ -15,8 +15,13 @@
function catalog() {
var board = $("input[name='board']");
if (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];