##// END OF EJS Templates
Fixed mouseout on cascade previews
neko259 -
r1476:fdce35a2 default
parent child Browse files
Show More
@@ -1,5 +1,7 b''
1 var LOADING_MSG = "<div class=\"post\">" + gettext('Loading...') + "</div>";
1 var LOADING_MSG = "<div class=\"post\">" + gettext('Loading...') + "</div>";
2
2
3 var CLS_PREVIEW = 'post_preview';
4
3 function $X(path, root) {
5 function $X(path, root) {
4 return document.evaluate(path, root || document, null, 6, null);
6 return document.evaluate(path, root || document, null, 6, null);
5 }
7 }
@@ -66,7 +68,7 b' function showPostPreview(e) {'
66
68
67 var cln = doc.createElement('div');
69 var cln = doc.createElement('div');
68 cln.id = 'pstprev_' + pNum;
70 cln.id = 'pstprev_' + pNum;
69 cln.className = 'post_preview';
71 cln.className = CLS_PREVIEW;
70
72
71 cln.style.cssText = 'left:' + x + 'px; top:' + y + 'px';
73 cln.style.cssText = 'left:' + x + 'px; top:' + y + 'px';
72
74
@@ -114,7 +116,7 b' function delPostPreview(e) {'
114 });
116 });
115 } else {
117 } else {
116 while (el.nextSibling) {
118 while (el.nextSibling) {
117 if (el.nextSibling.className.startsWith('pstprev')) {
119 if (el.nextSibling.className == CLS_PREVIEW) {
118 $del(el.nextSibling);
120 $del(el.nextSibling);
119 } else {
121 } else {
120 break;
122 break;
General Comments 0
You need to be logged in to leave comments. Login now