summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-09-27 11:13:04 +0200
committerczaks <marcin@6irc.net>2014-09-27 11:13:04 +0200
commitdda746201396977321b5c639a2fc8cf0575588a0 (patch)
tree37b6de5813a351b7b3869b2df9bc68a29dc5cb46 /js
parent6fd3b64c679d0640796b3fb3d5972fc465bfa954 (diff)
catalog link not always working; fix ctrlcctrlv#88
Diffstat (limited to 'js')
-rw-r--r--js/catalog-link.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/js/catalog-link.js b/js/catalog-link.js
index 5c5d9b13..05ee9efb 100644
--- a/js/catalog-link.js
+++ b/js/catalog-link.js
@@ -15,13 +15,8 @@
function catalog() {
var board = $("input[name='board']");
-if (board.length>0) {
-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 = configRoot + board.first().val() + "/catalog.html";
+
var pages = document.getElementsByClassName('pages')[0];
var bottom = document.getElementsByClassName('boardlist bottom')[0]
var subtitle = document.getElementsByClassName('subtitle')[0];
@@ -57,7 +52,6 @@ if (subtitle) {
subtitle.appendChild(link2);
}
}
-}
if (active_page == 'thread' || active_page == 'index') {
$(document).ready(catalog);