diff --git a/web/root/sajax-forum/message_display.xjs b/web/root/sajax-forum/message_display.xjs index 7154183c20c37f5e56f113b80f10ee5bbccf9e31..1443cb24473768d8412fbd32425a176f69bc3056 100644 --- a/web/root/sajax-forum/message_display.xjs +++ b/web/root/sajax-forum/message_display.xjs @@ -27,7 +27,11 @@ if(new_stats[msg_number].inherit_new) <span class="post_date"><?xjs write(strftime("%m/%d/%y @ %I:%M %p",headers[msg_number].when_written_time)) ?></span> <span class="reply_count"><?xjs write(reply_count[msg_number]) ?></span> <span class="newest_reply_date"><?xjs if(new_stats[msg_number].newest_reply) write(strftime("%m/%d/%y @ %I:%M %p",new_stats[msg_number].newest_reply)); ?></span> - <div class="message-body" style="display: none" id="message-body-<?xjs write(clean_id(sub_code)+'-'+msg_number) ?>"></div> + <div class="message-body" style="display: <?xjs if(new_stats[msg_number].is_new) write('block'); else write('none') ?>" id="message-body-<?xjs write(clean_id(sub_code)+'-'+msg_number) ?>"><? + if(new_stats[msg_number].is_new) { + xjs_load('body.xjs'); + } + ?></div> <div class="replies" style="display: <?xjs if(new_stats[msg_number].inherit_new) write('block'); else write('none'); ?>" id="replies-<?xjs write(clean_id(sub_code)+'-'+msg_number) ?>"><?xjs /* Some of the replies are new... expand them! */ if(new_stats[msg_number].inherit_new) {