diff options
| author | czaks <marcin@6irc.net> | 2014-08-10 22:49:23 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-08-10 22:49:23 +0200 |
| commit | 1a1d44aadfdab2cc0ee3f74bae96090b9fd09e5f (patch) | |
| tree | e63c7a83db25b51421590215b3b1c60669532392 /js/live-index.js | |
| parent | 48c1de637c8371253636eea25c7c046353a3d1ed (diff) | |
live-index: fix for boards with more than one letter in name
Diffstat (limited to 'js/live-index.js')
| -rw-r--r-- | js/live-index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/live-index.js b/js/live-index.js index 8bce94f0..463f7596 100644 --- a/js/live-index.js +++ b/js/live-index.js @@ -18,7 +18,7 @@ if (active_page == 'index' && (""+document.location).match(/\/(index\.html)?(\?| // Make jQuery respond to reverse() $.fn.reverse = [].reverse; - var board_name = (""+document.location).match(/\/([^\/])\/[^/]*$/)[1]; + var board_name = (""+document.location).match(/\/([^\/]+)\/[^/]*$/)[1]; var handle_one_thread = function() { if ($(this).find(".new-posts").length <= 0) { |
