git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12671
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$xtra = <<<ECHO
<style type="text/css">
$xtra = <<<ECHO
<style type="text/css">
<!--
.ent_body {
display:inline;
<!--
.ent_body {
display:inline;
display:inline;
width:99%;
}
display:inline;
width:99%;
}
if ($newmail_changetitle) {
echo "<script type=\"text/javascript\">\n" .
if ($newmail_changetitle) {
echo "<script type=\"text/javascript\">\n" .
- "function ChangeTitleLoad() {\n";
+ "function ChangeTitleLoad() {\n" .
+ "var BeforeChangeTitle;\n";
echo 'window.parent.document.title = "' .
sprintf(ngettext("%s New Message","%s New Messages",$totalNew), $totalNew) .
"\";\n";
echo 'window.parent.document.title = "' .
sprintf(ngettext("%s New Message","%s New Messages",$totalNew), $totalNew) .
"\";\n";
$header = "<script type=\"text/javascript\">\n" .
"<!--\n".
" function squirrelmail_loginpage_onload() {\n".
$header = "<script type=\"text/javascript\">\n" .
"<!--\n".
" function squirrelmail_loginpage_onload() {\n".
- " var textElements = 0;\n".
+ " var textElements = 0; var i = 0;\n".
" for (i = 0; i < document.forms[0].elements.length; i++) {\n".
" if (document.forms[0].elements[i].type == \"text\" || document.forms[0].elements[i].type == \"password\") {\n".
" textElements++;\n".
" for (i = 0; i < document.forms[0].elements.length; i++) {\n".
" if (document.forms[0].elements[i].type == \"text\" || document.forms[0].elements[i].type == \"password\") {\n".
" textElements++;\n".
* @param string the name of the checkbox that should be (un)checked
*/
function row_click(chkboxName) {
* @param string the name of the checkbox that should be (un)checked
*/
function row_click(chkboxName) {
- chkbox = document.getElementById(chkboxName);
+ var chkbox = document.getElementById(chkboxName);
if (chkbox) {
// initialize orig_row_color if not defined already
if (!orig_row_colors[chkboxName]) {
if (chkbox) {
// initialize orig_row_color if not defined already
if (!orig_row_colors[chkboxName]) {
*/
function getCSSClass (theRow)
{
*/
function getCSSClass (theRow)
{
// 3.1 ... with DOM compatible browsers except Opera that does not return
// valid values with "getAttribute"
if (typeof(window.opera) == 'undefined'
// 3.1 ... with DOM compatible browsers except Opera that does not return
// valid values with "getAttribute"
if (typeof(window.opera) == 'undefined'
* need to predefine the entire array
*/
function rowOver(chkboxName) {
* need to predefine the entire array
*/
function rowOver(chkboxName) {
- chkbox = document.getElementById(chkboxName);
+ var chkbox = document.getElementById(chkboxName);
+ var rowClass, rowNum, overClass, clickedClass;
if (chkbox) {
if (!orig_row_colors[chkboxName]) {
rowClass = getCSSClass(chkbox.parentNode.parentNode);
if (chkbox) {
if (!orig_row_colors[chkboxName]) {
rowClass = getCSSClass(chkbox.parentNode.parentNode);
* @param string new color of the checked rows
*/
function toggle_all(formname, fancy) {
* @param string new color of the checked rows
*/
function toggle_all(formname, fancy) {
- TargetForm = document.getElementById(formname);
- j = 0;
+ var TargetForm = document.getElementById(formname);
+ var j = 0;
for (var i = 0; i < TargetForm.elements.length; i++) {
if (TargetForm.elements[i].type == 'checkbox' && TargetForm.elements[i].name.substring(0,3) == 'msg') {
if (fancy) {
for (var i = 0; i < TargetForm.elements.length; i++) {
if (TargetForm.elements[i].type == 'checkbox' && TargetForm.elements[i].name.substring(0,3) == 'msg') {
if (fancy) {
}
if (!iWidth) iWidth = 640;
if (!iHeight) iHeight = 550;
}
if (!iWidth) iWidth = 640;
if (!iHeight) iHeight = 550;
- sArg = "width=" + iWidth + ",height=" + iHeight + ",scrollbars=yes,resizable=yes,status=yes";
+ var sArg = "width=" + iWidth + ",height=" + iHeight + ",scrollbars=yes,resizable=yes,status=yes";
var newwin = window.open(comp_uri, "_blank", sArg);
}
var newwin = window.open(comp_uri, "_blank", sArg);
}
* Reload the read_body screen on sending an mdn receipt
*/
function sendMDN() {
* Reload the read_body screen on sending an mdn receipt
*/
function sendMDN() {
- mdnuri=window.location+'&sendreceipt=1';
+ var mdnuri=window.location+'&sendreceipt=1';
window.location = mdnuri;
}
window.location = mdnuri;
}
<script type="text/javascript">
<!--
function printFormat () {
<script type="text/javascript">
<!--
function printFormat () {
- print_win = window.open("../src/printer_friendly_main.php<?php echo $link['URL']; ?>", "Print", "width=800; height=600");
+ var print_win = window.open("../src/printer_friendly_main.php<?php echo $link['URL']; ?>", "Print", "width=800; height=600");
print_win.focus();
}
// -->
print_win.focus();
}
// -->