post-hover.js: fix long loop

This commit is contained in:
czaks 2013-12-29 18:32:58 +01:00
parent 36c846242a
commit f0ae0174c9

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;