$use_previewPane = getPref($data_dir, $username, 'use_previewPane', 0);
$show_preview_pane = checkForJavascript() && $use_previewPane;
$empty_frame_uri = $base_uri . 'plugins/preview_pane/empty_frame.php';
-if ($show_preview_pane) { ?>
- <script>
- <!--
- function refresh_message_list()
- { parent.right.delayed_page_load("<?php echo $message_list_href; ?>"); }
- // -->
- </script>
-<?php }
/** Begin template **/
echo _("Previous");
} else {
?>
- <a href="<?php echo $prev_href; ?>"<?php
+ <a href="<?php echo $prev_href; ?><?php
/** if preview pane turned on with "always refresh message list",
- refresh message list frame too, but only if we are in the bottom frame! */
+ refresh message list frame too, but only if we are in the bottom frame!
+ and make sure the refresh is conditional upon the seen flag of the
+ message after it is loaded (see read_headers.tpl) */
if ($show_preview_pane && $pp_refresh_message_list)
- echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
+ // old code: unconditional refresh
+ //echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
+ echo '&pp_rr=1';
-echo '>' . _("Previous"); ?></a>
+echo '">' . _("Previous"); ?></a>
<?php
}
?> |
echo _("Next");
} else {
?>
- <a href="<?php echo $next_href; ?>"<?php
+ <a href="<?php echo $next_href; ?><?php
/** if preview pane turned on with "always refresh message list",
- refresh message list frame too, but only if we are in the bottom frame! */
+ refresh message list frame too, but only if we are in the bottom frame!
+ and make sure the refresh is conditional upon the seen flag of the
+ message after it is loaded (see read_headers.tpl) */
if ($show_preview_pane && $pp_refresh_message_list)
- echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
+ // old code: unconditional refresh
+ //echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
+ echo '&pp_rr=1';
-echo '>' . _("Next"); ?></a>
+echo '">' . _("Next"); ?></a>
<?php
}
?>