1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

compact-boardlist.js: allow direct board links

This commit is contained in:
czaks 2014-04-21 01:19:34 +02:00
parent 366a72a813
commit 6379e024a6

View File

@ -54,6 +54,11 @@ if (device_type == 'desktop') {
$('<a class="cb-item cb-fa" href="'+categories[i].boards[0].href+'"><i class="fa-'+icon+' fa"></i></a>') $('<a class="cb-item cb-fa" href="'+categories[i].boards[0].href+'"><i class="fa-'+icon+' fa"></i></a>')
.appendTo(topbl) .appendTo(topbl)
} }
else if (item.name.match(/^d_/)) {
var icon = item.name.replace(/^d_/, '')
$('<a class="cb-item cb-cat" href="'+categories[i].boards[0].href+'">'+icon+'</a>')
.appendTo(topbl)
}
else { else {
$("<a class='cb-item cb-cat' href='javascript:void(0)'>"+item.name+"</a>") $("<a class='cb-item cb-cat' href='javascript:void(0)'>"+item.name+"</a>")
.appendTo(topbl) .appendTo(topbl)