summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-12-29 18:32:58 +0100
committerczaks <marcin@6irc.net>2013-12-29 18:32:58 +0100
commitf0ae0174c94f5637d1a5e804ce33fa666b4e9a67 (patch)
tree21453c2bbc075e06f679aa8e5fb87de1629b630f
parent36c846242a4f8a7f211083031f90907e6bcd1626 (diff)
post-hover.js: fix long loop
-rw-r--r--js/post-hover.js3
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;