diff options
| author | czaks <marcin@6irc.net> | 2013-08-11 17:32:57 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-11 17:32:57 -0400 |
| commit | 6e26c76c56fd5ad1e07e71f424d31ec9a27618df (patch) | |
| tree | 008c6a81f2be8520a85414ec4d96a804354ddb1d /js | |
| parent | 9a03b6902dddbe6201af9dc9b90046c098d0c5fc (diff) | |
| parent | b9ec342750009037893e1bb06640905c6d88b5dd (diff) | |
Merge branch 'master' of http://github.com/ctrlcctrlv/Tinyboard
Diffstat (limited to 'js')
| -rw-r--r-- | js/catalog-link.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/catalog-link.js b/js/catalog-link.js index cc55eb52..124a3e9a 100644 --- a/js/catalog-link.js +++ b/js/catalog-link.js @@ -3,8 +3,13 @@ function catalog() { var board = $("input[name='board']"); -if (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]; |
