diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-11 13:17:21 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-11 13:17:21 +0000 |
| commit | 9244cafe9c8c125bac75da404bdcb097176dcde7 (patch) | |
| tree | 50a8a9f04b1f2ad4b7ab6fa905bd3007a5c63f15 /js | |
| parent | bc77d51d54d02ef5132a9d65cb8f2813db9ece7b (diff) | |
Fix catalog image not working inside threads
Diffstat (limited to 'js')
| -rw-r--r-- | js/catalog-link.js | 5 |
1 files changed, 5 insertions, 0 deletions
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]; |
