mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
post-hover.js: fix long loop
This commit is contained in:
parent
92ed7ff6a8
commit
7e19033d66
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user