mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-05 22:25:33 +01:00
Catalog fix for threads
This commit is contained in:
parent
195c587dc0
commit
e2b3ba02f0
@ -15,8 +15,13 @@
|
|||||||
function catalog() {
|
function catalog() {
|
||||||
var board = $("input[name='board']");
|
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';
|
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…
x
Reference in New Issue
Block a user