Placed a check to make sure there is a reply button in a notice before

applying the dynamic action
This commit is contained in:
Sarven Capadisli 2009-06-18 01:04:12 +00:00
parent b0591cd982
commit 5854fe194a
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ $(document).ready(function(){
}); });
function NoticeReply() { function NoticeReply() {
if ($('#notice_data-text').length > 0) { if ($('#notice_data-text').length > 0 && $('.notice_reply').length > 0) {
$('#content .notice').each(function() { $('#content .notice').each(function() {
var notice = $(this)[0]; var notice = $(this)[0];
$($('.notice_reply', notice)[0]).click(function() { $($('.notice_reply', notice)[0]).click(function() {
@ -308,4 +308,4 @@ function NoticeAttachments() {
$(this).closest(".entry-title").removeClass('ov'); $(this).closest(".entry-title").removeClass('ov');
} }
); );
} }