Uses regular HTTP GET to new notice replyto page instead of JS when

notice_data-text is available.
This commit is contained in:
Sarven Capadisli 2009-01-28 15:25:50 +00:00
parent f761031d0a
commit e2d445abbb
1 changed files with 9 additions and 7 deletions

View File

@ -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) {