post-hover.js: fix long loop
Conflicts: js/post-hover.js
This commit is contained in:
parent
0fb513d9ae
commit
7ec82f878e
@ -24,6 +24,24 @@ onready(function(){
|
||||
return;
|
||||
}
|
||||
|
||||
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;
|
||||
else threadid = board.attr('id').replace("thread_", "");
|
||||
|
||||
board = board.data('board');
|
||||
|
||||
var parentboard = board;
|
||||
|
||||
if ($link.is('[data-thread]')) parentboard = $('form[name="post"] input[name="board"]').val();
|
||||
else if (matches[1] !== undefined) board = matches[1];
|
||||
|
||||
var $post = false;
|
||||
var hovering = false;
|
||||
var hovered_at;
|
||||
|
Loading…
Reference in New Issue
Block a user