summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@plantard.controlezvous.ca>2009-01-28 15:25:50 +0000
committerSarven Capadisli <csarven@plantard.controlezvous.ca>2009-01-28 15:25:50 +0000
commite2d445abbbf50447557ea1a9b1c0ff518a46cd7e (patch)
tree016ac68aed410a6bfc979ea361ceff08707c8eb7
parentf761031d0acdc03add5a6bd9a125575463da2582 (diff)
Uses regular HTTP GET to new notice replyto page instead of JS when
notice_data-text is available.
-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) {