Browse Source

Fixes catalog href on a potential /res/ board

pull/40/head
Nebs 10 years ago
committed by czaks
parent
commit
ab2a83d194
  1. 6
      js/catalog-link.js

6
js/catalog-link.js

@ -16,11 +16,11 @@ 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';
if (window.location.pathname.indexOf("/res/")>0){ //if we are inside a thread
var catalog_url = '../catalog.html';
}
else {
var catalog_url = '../catalog.html';
var catalog_url = 'catalog.html';
}
var pages = document.getElementsByClassName('pages')[0];
var bottom = document.getElementsByClassName('boardlist bottom')[0]

Loading…
Cancel
Save