patch #527664. disables text box focus when reading mail.
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 9 May 2002 04:05:01 +0000 (04:05 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 9 May 2002 04:05:01 +0000 (04:05 +0000)
Thanks Ryan O'Neill

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2807 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index b28021692e08dd0761024abffaf6a43d0146e30c..dc33315c94d9008eb65cf5cd2a33fa69b8d7b2fb 100644 (file)
@@ -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" .