From 4616483b676200432ade02d1dde0d4727e644ef9 Mon Sep 17 00:00:00 2001 From: "gilbert.fang%sun.com" Date: Wed, 17 May 2006 02:35:33 +0000 Subject: [PATCH] Fix bug 193835: Missing focus when selected the related checkbox or radiobox in Preference window. p=jessie.li@sun.com,r=neil@parkwaycc.co.uk,sr=jag. --- suite/common/pref/pref-advanced.xul | 8 ++++---- suite/common/pref/pref-mousewheel.xul | 12 ++++++------ suite/common/pref/pref-offline.xul | 11 +++++------ 3 files changed, 15 insertions(+), 16 deletions(-) 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);"/>