summaryrefslogtreecommitdiff
path: root/js/catalog-link.js
diff options
context:
space:
mode:
authorSimon McFarlane <simon@piston.pw>2015-06-01 16:08:19 -0700
committerSimon McFarlane <simon@piston.pw>2015-06-01 16:08:19 -0700
commit209bc5400144e448e95a68e01d842c6fab53ae71 (patch)
treeab4cc6ad241e8daccb546514330d3a5f2906e846 /js/catalog-link.js
parentd1c1e5a589f30d640f5eb6303e7059105a6297f8 (diff)
parent7ab9cc43d101ed002bce392beefe1c435ab2d5b1 (diff)
Merge pull request #18 from lainchan/vichan-merge
Merge with the latest upstream vichan
Diffstat (limited to 'js/catalog-link.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 899e6859..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.href.indexOf("/res/")==-1){ //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);