summaryrefslogtreecommitdiff
path: root/js/catalog-link.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-09-26 14:08:40 +0200
committerczaks <marcin@6irc.net>2014-09-26 14:08:40 +0200
commitb4b99cd9369c6418534536c5eb5b7b127ab55dfa (patch)
treec6d651753c0461ba2eaa04c34f633b82e148c2f2 /js/catalog-link.js
parent359c295ecaf079318d55b1acc6e900ee74feb6d3 (diff)
parentbfb85fc2b19bcc895bd0034d0d7a9d7b64f481f4 (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Conflicts: stylesheets/style.css
Diffstat (limited to 'js/catalog-link.js')
-rw-r--r--js/catalog-link.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/catalog-link.js b/js/catalog-link.js
index 899e6859..5c5d9b13 100644
--- a/js/catalog-link.js
+++ b/js/catalog-link.js
@@ -16,11 +16,11 @@ 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';
+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 = 'catalog.html';
}
var pages = document.getElementsByClassName('pages')[0];
var bottom = document.getElementsByClassName('boardlist bottom')[0]