From 05d855a48dd62646edc502cc3d10abedaea19f3d Mon Sep 17 00:00:00 2001 From: "dmose%netscape.com" Date: Wed, 20 Nov 2002 02:09:34 +0000 Subject: [PATCH] Initial size of junk mail dialog is huge (bug 180215). Patch from neil@parkwaycc.co.uk; thanks Neil! r=dmose, sr=sspitzer --- mailnews/base/resources/content/junkMail.js | 10 ++---- mailnews/base/resources/content/junkMail.xul | 35 ++++++++------------ 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/mailnews/base/resources/content/junkMail.js b/mailnews/base/resources/content/junkMail.js index 7a9b942b4513..e54d3bb1cb82 100644 --- a/mailnews/base/resources/content/junkMail.js +++ b/mailnews/base/resources/content/junkMail.js @@ -1,15 +1,14 @@ var gSpamSettings = {}; var gCurrentServer; -var gMessengerBundle = document.getElementById("bundle_messenger"); +var gMessengerBundle; function onJunkMailLoad() { + gMessengerBundle = document.getElementById("bundle_messenger"); if (window.arguments && window.arguments[0]) { // XXX todo, what if no folder? setupForAccountFromFolder(window.arguments[0].folder.URI); } - - doSetOKCancel(onAccept, onCancel, doHelpButton); } function onServerClick(event) @@ -184,8 +183,3 @@ function doHelpButton() return false; // don't close the top-level window } - -function onCancel() -{ - return true; // close the top-level window -} diff --git a/mailnews/base/resources/content/junkMail.xul b/mailnews/base/resources/content/junkMail.xul index 4031cb17fafb..36a3e35cd293 100644 --- a/mailnews/base/resources/content/junkMail.xul +++ b/mailnews/base/resources/content/junkMail.xul @@ -2,29 +2,28 @@ - - - + onload="onJunkMailLoad();" + buttons="accept,cancel,help" + ondialogaccept="return onAccept();" + ondialoghelp="return doHelpButton();"> - - - +