# HG changeset patch # User neko259 # Date 2016-02-08 13:55:59 # Node ID fdce35a23df424c13e9f3ab23c22223a106e81b2 # Parent daf7f27709f5d0cc5a5b5d980dfe554a435b8c87 Fixed mouseout on cascade previews diff --git a/boards/static/js/refpopup.js b/boards/static/js/refpopup.js --- a/boards/static/js/refpopup.js +++ b/boards/static/js/refpopup.js @@ -1,5 +1,7 @@ var LOADING_MSG = "
" + gettext('Loading...') + "
"; +var CLS_PREVIEW = 'post_preview'; + function $X(path, root) { return document.evaluate(path, root || document, null, 6, null); } @@ -66,7 +68,7 @@ function showPostPreview(e) { var cln = doc.createElement('div'); cln.id = 'pstprev_' + pNum; - cln.className = 'post_preview'; + cln.className = CLS_PREVIEW; cln.style.cssText = 'left:' + x + 'px; top:' + y + 'px'; @@ -114,7 +116,7 @@ function delPostPreview(e) { }); } else { while (el.nextSibling) { - if (el.nextSibling.className.startsWith('pstprev')) { + if (el.nextSibling.className == CLS_PREVIEW) { $del(el.nextSibling); } else { break;