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>')
.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 {
$("<a class='cb-item cb-cat' href='javascript:void(0)'>"+item.name+"</a>")
.appendTo(topbl)