if ($squirrelmail_language == 'ja_JP') {
echo "<!-- \xfd\xfe -->\n";
- echo '<meta http-equiv="Content-type" content="text/html; charset=euc-jp">' . "\n";
+ echo '<meta http-equiv="Content-type" content="text/html; charset=euc-jp" />' . "\n";
}
if ($do_hook) {
' var newwin = window.open(comp_uri' .
', "_blank",'.
'"width='.$compose_width. ',height='.$compose_height.
- ',scrollbars=yes,resizable=yes");'."\n".
+ ',scrollbars=yes,resizable=yes,status=yes");'."\n".
"}\n\n";
$js .= "function comp_in_new(comp_uri) {\n".
" if (!comp_uri) {\n".
' var newwin = window.open(comp_uri' .
', "_blank",'.
'"width='.$compose_width. ',height='.$compose_height.
- ',scrollbars=yes,resizable=yes");'."\n".
+ ',scrollbars=yes,resizable=yes,status=yes");'."\n".
"}\n\n";
}
{
if ($reply_focus == 'select') $js .= "document.forms['compose'].body.select();}\n";
else if ($reply_focus == 'focus') $js .= "document.forms['compose'].body.focus();}\n";
+ else if ($reply_focus == 'none') $js .= "}\n";
+ }
+ // no reply focus also applies to composing new messages
+ else if ($reply_focus == 'none')
+ {
+ $js .= "}\n";
}
else
$js .= "var f = document.forms.length;\n".
$compose_height = '550';
}
$js .= "function comp_in_new(comp_uri) {\n".
- " if (!comp_uri) {\n".
- ' comp_uri = "'.$compose_uri."\";\n".
- ' }'. "\n".
+ " if (!comp_uri) {\n".
+ ' comp_uri = "'.$compose_uri."\";\n".
+ ' }'. "\n".
' var newwin = window.open(comp_uri' .
', "_blank",'.
'"width='.$compose_width. ',height='.$compose_height.
- ',scrollbars=yes,resizable=yes");'."\n".
+ ',scrollbars=yes,resizable=yes,status=yes");'."\n".
"}\n\n";
}
echo "</td>\n";
}
echo " </tr>\n".
- "</table><br>\n\n";
+ "</table><br />\n\n";
}
/**
{
if ($reply_focus == 'select') $js .= "document.forms['compose'].body.select();}\n";
else if ($reply_focus == 'focus') $js .= "document.forms['compose'].body.focus();}\n";
+ else if ($reply_focus == 'none') $js .= "}\n";
+ }
+ // no reply focus also applies to composing new messages
+ else if ($reply_focus == 'none')
+ {
+ $js .= "}\n";
}
else
$js .= "var f = document.forms.length;\n".