diff options
| author | kaernyk <kaernyk@users.noreply.github.com> | 2014-09-28 04:27:57 -0400 |
|---|---|---|
| committer | kaernyk <kaernyk@users.noreply.github.com> | 2014-09-28 04:27:57 -0400 |
| commit | 197e4d4bfcb5a312a699e1f6d012da03ee36fbe2 (patch) | |
| tree | 04658fcf30a02d2ffc7a34442b77c06d733ee83c /js/catalog-link.js | |
| parent | a3c03932c31b952a73ce614ab651cef7fd986451 (diff) | |
| parent | cb7b7d070cad4286c998579d4cd263b9979535ef (diff) | |
Merge pull request #1 from vichan-devel/master
Merge changes in upstream
Diffstat (limited to 'js/catalog-link.js')
| -rw-r--r-- | js/catalog-link.js | 10 |
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); |
