Browse Source

Fix catalog image not working inside threads

pull/40/head
ctrlcctrlv 11 years ago
parent
commit
9244cafe9c
  1. 5
      js/catalog-link.js

5
js/catalog-link.js

@ -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];

Loading…
Cancel
Save