Browse Source

patch #527664. disables text box focus when reading mail.
Thanks Ryan O'Neill

jmunro 23 years ago
parent
commit
131c51ff60
1 changed files with 6 additions and 0 deletions
  1. 6 0
      functions/page_header.php

+ 6 - 0
functions/page_header.php

@@ -49,6 +49,9 @@ function displayPageHeader($color, $mailbox, $xtra='') {
     $compose_new_win, $username, $datadir, $compose_width, $compose_height;
 
     $module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 );
+    if ($qmark = strpos($module, '?')) {
+        $module = substr($module, 0, $qmark);
+    }
     if (!isset($frame_top)) {
         $frame_top = '_top';
     }
@@ -174,6 +177,9 @@ function compose_Header($color, $mailbox) {
         $onload = "onLoad=\"document.forms[$pos].elements[2].focus();\"";
         displayHtmlHeader (_("Compose"));
         break;
+    case 'src/read_body.php':
+        displayHtmlHeader();
+        break;
     default:
         $js = '<script language="JavaScript" type="text/javascript">' .
              "\n<!--\n" .