Fix .current switcher

Single letter boards were matching, well... anything with their
board letter. I guess I wrote that pretty dumb, hah.
This commit is contained in:
Zixaphir 2014-01-11 11:14:35 -07:00
parent 1e7c617d80
commit 805c40d3bf
3 changed files with 3 additions and 3 deletions

View File

@ -12052,7 +12052,7 @@
};
fullBoardList = $('#full-board-list', Header.boardList);
$.rmClass($('.current', fullBoardList), 'current');
$.addClass($("a[href*='" + boardID + "']", fullBoardList), 'current');
$.addClass($("a[href*='/" + boardID + "/']", fullBoardList), 'current');
Header.generateBoardList(Conf['boardnav'].replace(/(\r\n|\n|\r)/g, ' '));
return req = $.ajax('//a.4cdn.org/boards.json', {
onabort: onload,

View File

@ -12041,7 +12041,7 @@
};
fullBoardList = $('#full-board-list', Header.boardList);
$.rmClass($('.current', fullBoardList), 'current');
$.addClass($("a[href*='" + boardID + "']", fullBoardList), 'current');
$.addClass($("a[href*='/" + boardID + "/']", fullBoardList), 'current');
Header.generateBoardList(Conf['boardnav'].replace(/(\r\n|\n|\r)/g, ' '));
return req = $.ajax('//a.4cdn.org/boards.json', {
onabort: onload,

View File

@ -163,7 +163,7 @@ Navigate =
fullBoardList = $ '#full-board-list', Header.boardList
$.rmClass $('.current', fullBoardList), 'current'
$.addClass $("a[href*='#{boardID}']", fullBoardList), 'current'
$.addClass $("a[href*='/#{boardID}/']", fullBoardList), 'current'
Header.generateBoardList Conf['boardnav'].replace /(\r\n|\n|\r)/g, ' '
req = $.ajax '//a.4cdn.org/boards.json',