From 7ba10d7a74e14ce922a7267fdeec184c276c8e65 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 16 Nov 2008 09:35:56 +0000
Subject: [PATCH] Expand new messages by default.

---
 web/root/sajax-forum/message_display.xjs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/web/root/sajax-forum/message_display.xjs b/web/root/sajax-forum/message_display.xjs
index 7154183c20..1443cb2447 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) {
-- 
GitLab