summaryrefslogtreecommitdiff
path: root/js/catalog-link.js
diff options
context:
space:
mode:
authorkaernyk <kaernyk@gmail.com>2014-09-28 04:30:22 -0400
committerkaernyk <kaernyk@gmail.com>2014-09-28 04:30:22 -0400
commitf6e827ca75453f8769d725056460194c55c95696 (patch)
tree22cce8b0a7c1eb8d459b1233105566e5e28daf90 /js/catalog-link.js
parent78cf4a8b56393358a6383d258bc237e481b7b323 (diff)
parent197e4d4bfcb5a312a699e1f6d012da03ee36fbe2 (diff)
Merge branch 'master' of https://github.com/kaernyk/vichan
Conflicts: stylesheets/style.css
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 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);