1
0
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:
czaks 2013-12-29 18:32:58 +01:00 committed by Michael Foster
parent 873d3dc534
commit 46e74cda44

View File

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