This commit is contained in:
Zixaphir 2013-08-08 14:35:26 -07:00
parent 254fa9959b
commit bd1dc8cb53
4 changed files with 15 additions and 4 deletions

View File

@ -1616,7 +1616,11 @@
a.dataset.only = m[1];
a.href = "//boards.4chan.org/" + board + "/";
if (m[1] === 'catalog') {
a.href += 'catalog';
if (Conf['External Catalog']) {
a.href = CatalogLinks.external(board);
} else {
a.href += 'catalog';
}
$.addClass(a, 'catalog');
}
}

View File

@ -1628,7 +1628,11 @@
a.dataset.only = m[1];
a.href = "//boards.4chan.org/" + board + "/";
if (m[1] === 'catalog') {
a.href += 'catalog';
if (Conf['External Catalog']) {
a.href = CatalogLinks.external(board);
} else {
a.href += 'catalog';
}
$.addClass(a, 'catalog');
}
}

View File

@ -169,7 +169,10 @@ Header =
a.dataset.only = m[1]
a.href = "//boards.4chan.org/#{board}/"
if m[1] is 'catalog'
a.href += 'catalog'
if Conf['External Catalog']
a.href = CatalogLinks.external board
else
a.href += 'catalog'
$.addClass a, 'catalog'
$.addClass a, 'navSmall' if board is '@'

View File

@ -35,7 +35,7 @@ CatalogLinks =
continue if ['f', 'status', '4chan'].contains(board) or !board
if Conf['External Catalog']
a.href = if useCatalog
CatalogLinks.external(board)
CatalogLinks.external board
else
"//boards.4chan.org/#{board}/"
else