From b9d5e41157843ab7b3621d183362b93e7e85edad Mon Sep 17 00:00:00 2001 From: jmunro Date: Thu, 9 May 2002 04:05:01 +0000 Subject: [PATCH] patch #527664. disables text box focus when reading mail. 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions/page_header.php b/functions/page_header.php index b2802169..dc33315c 100644 --- a/functions/page_header.php +++ b/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 = '