diff --git a/suite/common/pref/pref-advanced.xul b/suite/common/pref/pref-advanced.xul index 28008023b4e..75eeb3f69fb 100644 --- a/suite/common/pref/pref-advanced.xul +++ b/suite/common/pref/pref-advanced.xul @@ -38,16 +38,16 @@ var _elementIDs = ["advancedJavaAllow", "advancedMailFTP", "advancedMailFTPAddress"]; function Startup() { - ftpCheck(); + ftpCheck(false); turboCheck(); } - function ftpCheck() { + function ftpCheck(setFocus) { var checked = document.getElementById("advancedMailFTP").checked; var field = document.getElementById("advancedMailFTPAddress"); field.disabled = !checked; - if (! field.disabled) + if (!field.disabled && setFocus) field.focus(); } @@ -145,7 +145,7 @@ + oncommand="ftpCheck(true);"/> + oncommand="enableField(this, 'mousewheelWithNoKeyNumlines', true);"/> @@ -144,7 +144,7 @@ + oncommand="enableField(this, 'mousewheelWithAltKeyNumlines', true);"/> @@ -165,7 +165,7 @@ + oncommand="enableField(this, 'mousewheelWithCtrlKeyNumlines', true);"/> @@ -185,7 +185,7 @@ + oncommand="enableField(this, 'mousewheelWithShiftKeyNumlines', true);"/> diff --git a/suite/common/pref/pref-offline.xul b/suite/common/pref/pref-offline.xul index a6e19b6d175..b6d6c74013c 100644 --- a/suite/common/pref/pref-offline.xul +++ b/suite/common/pref/pref-offline.xul @@ -38,15 +38,14 @@ @@ -96,7 +95,7 @@ + oncommand="enableField(this,'offlineCompactFolderMin',true);"/>