1
0
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:
czaks 2013-12-29 18:32:58 +01:00
parent 92ed7ff6a8
commit 7e19033d66

View File

@ -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;