From 20311b8044d569afbd52e60efc219d8470b1b17c Mon Sep 17 00:00:00 2001 From: "hewitt%netscape.com" Date: Sat, 3 Nov 2001 11:27:04 +0000 Subject: [PATCH] fixing various fun regressions from blake's earlier landing, rs=hyatt --- editor/ui/dialogs/content/EdAdvancedEdit.js | 2 +- editor/ui/dialogs/content/EdPageProps.xul | 2 +- extensions/p3p/resources/content/pref-P3P.js | 2 +- extensions/wallet/cookieviewer/CookieViewer.xul | 1 - .../base/prefs/resources/content/am-copies.js | 2 +- .../prefs/resources/content/aw-accounttype.js | 5 +++-- .../base/resources/content/msgSelectOffline.xul | 5 +++-- mailnews/base/resources/content/msgSynchronize.js | 2 -- .../base/resources/content/newFolderDialog.js | 2 +- .../base/resources/content/renameFolderDialog.js | 2 +- .../resources/content/addressingWidgetOverlay.xul | 6 +++--- .../compose/resources/content/askSendFormat.js | 2 +- .../news/resources/content/downloadheaders.js | 2 +- profile/resources/content/profileSelection.xul | 5 ++--- xpfe/browser/resources/content/turboDialog.xul | 15 +++------------ .../communicator/resources/content/askViewZoom.js | 2 +- .../resources/content/askViewZoom.xul | 1 + .../resources/content/openLocation.js | 5 +---- .../resources/content/openLocation.xul | 5 ++--- .../filepicker/res/content/filepicker.js | 3 +-- .../resources/content/pref-applications-edit.xul | 6 +++--- .../prefwindow/resources/content/pref-charset.xul | 1 - .../resources/content/pref-languages.js | 2 -- .../ucth/resources/helperAppLauncher.js | 9 --------- .../ucth/resources/helperAppLauncher.xul | 6 +++--- xpfe/global/resources/content/unix/printdialog.js | 4 ++-- .../global/resources/content/unix/printdialog.xul | 4 ++-- 27 files changed, 38 insertions(+), 65 deletions(-) diff --git a/editor/ui/dialogs/content/EdAdvancedEdit.js b/editor/ui/dialogs/content/EdAdvancedEdit.js index 5b414d5338a1..1d7405396441 100644 --- a/editor/ui/dialogs/content/EdAdvancedEdit.js +++ b/editor/ui/dialogs/content/EdAdvancedEdit.js @@ -87,7 +87,7 @@ function Startup() gDialog.AddJSEAttributeNameList = document.getElementById("AddJSEAttributeNameList"); gDialog.AddJSEAttributeValueInput = document.getElementById("AddJSEAttributeValueInput"); gDialog.AddJSEAttributeTree = document.getElementById("JSEATree"); - gDialog.okButton = document.getElementById("ok"); + gDialog.okButton = document.documentElement.getButton("accept"); // build the attribute trees BuildHTMLAttributeTable(); diff --git a/editor/ui/dialogs/content/EdPageProps.xul b/editor/ui/dialogs/content/EdPageProps.xul index 7449a1c8de35..ead9441f4ead 100644 --- a/editor/ui/dialogs/content/EdPageProps.xul +++ b/editor/ui/dialogs/content/EdPageProps.xul @@ -27,7 +27,7 @@ - + - diff --git a/mailnews/base/prefs/resources/content/am-copies.js b/mailnews/base/prefs/resources/content/am-copies.js index 4c8c1b5f8c67..85cfe75b5b0e 100644 --- a/mailnews/base/prefs/resources/content/am-copies.js +++ b/mailnews/base/prefs/resources/content/am-copies.js @@ -188,7 +188,7 @@ function noteSelectionChange(radioItemId) { var checkedElem = document.getElementById(radioItemId); var modeValue = checkedElem.getAttribute("value"); - var radioGroup = checkedElem.getAttribute("group"); + var radioGroup = checkedElem.radioGroup.getAttribute("id"); switch (radioGroup) { case "doFcc" : diff --git a/mailnews/base/prefs/resources/content/aw-accounttype.js b/mailnews/base/prefs/resources/content/aw-accounttype.js index 22aebfe55d81..4fd0fcae2bef 100644 --- a/mailnews/base/prefs/resources/content/aw-accounttype.js +++ b/mailnews/base/prefs/resources/content/aw-accounttype.js @@ -40,12 +40,13 @@ function onInit() { // this is a total hack. // select the first radio button, assuming the wizard hasn't // already selected one for us. The wizard can get in this wierd state - var elements = document.getElementsByAttribute("group", "acctyperadio"); + var rg = document.getElementById("acctyperadio"); + var elements = rg.getElementsByTagName("radio"); var topItem = elements[0]; for (var i=0; i < elements.length; i++) if (elements[i].checked) topItem = elements[i]; - document.getElementById("acctyperadio").selectedItem = topItem; + rg.selectedItem = topItem; } function onUnload() { diff --git a/mailnews/base/resources/content/msgSelectOffline.xul b/mailnews/base/resources/content/msgSelectOffline.xul index b0d376400293..b2ad65c17c58 100644 --- a/mailnews/base/resources/content/msgSelectOffline.xul +++ b/mailnews/base/resources/content/msgSelectOffline.xul @@ -27,7 +27,6 @@ Contributors: - + onload="selectOnLoad();" + ondialogaccept="return selectOkButton();" + ondialogcancel="return selectCancelButton();">