mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
post-hover.js: fix long loop
Conflicts: js/post-hover.js
This commit is contained in:
parent
873d3dc534
commit
46e74cda44
@ -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