Skip to content

Commit

Permalink
catalog link not always working; fix ctrlcctrlv#88
Browse files Browse the repository at this point in the history
  • Loading branch information
czaks committed Sep 27, 2014
1 parent 6fd3b64 commit dda7462
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions js/catalog-link.js
Expand Up @@ -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];
Expand Down Expand Up @@ -57,7 +52,6 @@ if (subtitle) {
subtitle.appendChild(link2);
}
}
}

if (active_page == 'thread' || active_page == 'index') {
$(document).ready(catalog);
Expand Down

0 comments on commit dda7462

Please sign in to comment.