live-index: fix for boards with more than one letter in name

This commit is contained in:
czaks 2014-08-10 22:49:23 +02:00
parent 48c1de637c
commit 1a1d44aadf

View File

@ -18,7 +18,7 @@ if (active_page == 'index' && (""+document.location).match(/\/(index\.html)?(\?|
// Make jQuery respond to reverse() // Make jQuery respond to reverse()
$.fn.reverse = [].reverse; $.fn.reverse = [].reverse;
var board_name = (""+document.location).match(/\/([^\/])\/[^/]*$/)[1]; var board_name = (""+document.location).match(/\/([^\/]+)\/[^/]*$/)[1];
var handle_one_thread = function() { var handle_one_thread = function() {
if ($(this).find(".new-posts").length <= 0) { if ($(this).find(".new-posts").length <= 0) {