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