summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-11 23:02:30 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-11 23:02:30 +1100
commitc34ea2e3af01d9a688fb14b3da550aa96615f312 (patch)
tree8560552c1f92ce13452cca79172799491ff9b69a /main.js
parent0346862645aa0b9a8ba0f0d929b336b08ff8fcf4 (diff)
a Fixed delete by IP, plus a bunch of small stuff
Diffstat (limited to 'main.js')
-rw-r--r--main.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.js b/main.js
index d0a82dda..038713cd 100644
--- a/main.js
+++ b/main.js
@@ -6,8 +6,11 @@ function highlightReply(id)
if (divs[i].className.indexOf('post') != -1)
divs[i].className = divs[i].className.replace(/highlighted/, '');
}
- if (id)
- document.getElementById('reply_'+id).className += ' highlighted';
+ if (id) {
+ post = document.getElementById('reply_'+id);
+ if(post)
+ post.className += ' highlighted';
+ }
}
function focusId(id)
{