catalog link not always working; fix ctrlcctrlv#88
This commit is contained in:
parent
6fd3b64c67
commit
dda7462013
@ -15,13 +15,8 @@
|
|||||||
function catalog() {
|
function catalog() {
|
||||||
var board = $("input[name='board']");
|
var board = $("input[name='board']");
|
||||||
|
|
||||||
if (board.length>0) {
|
var catalog_url = configRoot + board.first().val() + "/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 pages = document.getElementsByClassName('pages')[0];
|
var pages = document.getElementsByClassName('pages')[0];
|
||||||
var bottom = document.getElementsByClassName('boardlist bottom')[0]
|
var bottom = document.getElementsByClassName('boardlist bottom')[0]
|
||||||
var subtitle = document.getElementsByClassName('subtitle')[0];
|
var subtitle = document.getElementsByClassName('subtitle')[0];
|
||||||
@ -57,7 +52,6 @@ if (subtitle) {
|
|||||||
subtitle.appendChild(link2);
|
subtitle.appendChild(link2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (active_page == 'thread' || active_page == 'index') {
|
if (active_page == 'thread' || active_page == 'index') {
|
||||||
$(document).ready(catalog);
|
$(document).ready(catalog);
|
||||||
|
Loading…
Reference in New Issue
Block a user