From 9244cafe9c8c125bac75da404bdcb097176dcde7 Mon Sep 17 00:00:00 2001 From: ctrlcctrlv Date: Sun, 11 Aug 2013 13:17:21 +0000 Subject: [PATCH] Fix catalog image not working inside threads --- js/catalog-link.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/catalog-link.js b/js/catalog-link.js index a8b8a0a8..124a3e9a 100644 --- a/js/catalog-link.js +++ b/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];