diff options
| author | czaks <marcin@6irc.net> | 2013-12-29 18:32:58 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-12-29 18:32:58 +0100 |
| commit | f0ae0174c94f5637d1a5e804ce33fa666b4e9a67 (patch) | |
| tree | 21453c2bbc075e06f679aa8e5fb87de1629b630f /js/post-hover.js | |
| parent | 36c846242a4f8a7f211083031f90907e6bcd1626 (diff) | |
post-hover.js: fix long loop
Diffstat (limited to 'js/post-hover.js')
| -rw-r--r-- | js/post-hover.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/post-hover.js b/js/post-hover.js index 6d07e608..5bf3375f 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -30,8 +30,11 @@ onready(function(){ } var board = $(this); + var i = 0; while (board.data('board') === undefined) { board = board.parent(); + i++; + if (i >= 10) return; } var threadid; if ($link.is('[data-thread]')) threadid = 0; |
