summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorEvan Prodromou <git@evanprodromou.name>2009-01-28 15:24:37 -0500
committerEvan Prodromou <git@evanprodromou.name>2009-01-28 15:24:37 -0500
commit01fce5df271925ca7ad5de0ca71b6ffea6e214fb (patch)
tree946c4d811cf14072ccfe82650bdf285395100ca7 /js/util.js
parent62fd9369ec11fae90f166b53c3fdfc74d9ca85de (diff)
parentf400db5fe42e2f73ced3a21de1a1b12f5cb415a9 (diff)
Merge branch 'master' of evan@dev.controlyourself.ca:/var/www/trunk
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/js/util.js b/js/util.js
index 391e4653d..3ad038612 100644
--- a/js/util.js
+++ b/js/util.js
@@ -202,14 +202,16 @@ function NoticeHover() {
}
function NoticeReply() {
- $('#content .notice').each(function() {
- var notice = $(this);
- $('.notice_reply', $(this)).click(function() {
- var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
- NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
- return false;
+ if ($('#notice_data-text').length > 0) {
+ $('#content .notice').each(function() {
+ var notice = $(this);
+ $('.notice_reply', $(this)).click(function() {
+ var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
+ NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
+ return false;
+ });
});
- });
+ }
}
function NoticeReplySet(nick,id) {