Allow preview pane message list refresh mechanism to be forced by others
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 5 Jan 2008 11:22:08 +0000 (11:22 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 5 Jan 2008 11:22:08 +0000 (11:22 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12858 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default_advanced/read_headers.tpl

index c38b2a3..ddcc1a7 100644 (file)
@@ -122,6 +122,9 @@ extract($t);
 <?php
 // do a conditional refresh of message list if needed
 // "pp_rr" = "preview pane read refresh"
-if (sqGetGlobalVar('pp_rr', $pp_rr, SQ_FORM) && $show_preview_pane && $first_time_reading) {
-        echo "<script language=\"JavaScript\" type=\"text/javascript\">\n<!--\nif (self.name == 'bottom') { refresh_message_list(); }\n// -->\n</script>\n";
+// "pp_rr_force" = force pp_rr even if this is not the first time the message has been read
+if ($show_preview_pane
+ && (sqGetGlobalVar('pp_rr_force', $pp_rr_force, SQ_FORM)
+ || (sqGetGlobalVar('pp_rr', $pp_rr, SQ_FORM) && $first_time_reading))) {
+    echo "<script language=\"JavaScript\" type=\"text/javascript\">\n<!--\nif (self.name == 'bottom') { refresh_message_list(); }\n// -->\n</script>\n";
 }