зеркало из https://github.com/mozilla/gecko-dev.git
Initial size of junk mail dialog is huge (bug 180215). Patch from neil@parkwaycc.co.uk; thanks Neil! r=dmose, sr=sspitzer
This commit is contained in:
Родитель
4c8e36830a
Коммит
05d855a48d
|
@ -1,15 +1,14 @@
|
||||||
var gSpamSettings = {};
|
var gSpamSettings = {};
|
||||||
var gCurrentServer;
|
var gCurrentServer;
|
||||||
var gMessengerBundle = document.getElementById("bundle_messenger");
|
var gMessengerBundle;
|
||||||
|
|
||||||
function onJunkMailLoad()
|
function onJunkMailLoad()
|
||||||
{
|
{
|
||||||
|
gMessengerBundle = document.getElementById("bundle_messenger");
|
||||||
if (window.arguments && window.arguments[0]) {
|
if (window.arguments && window.arguments[0]) {
|
||||||
// XXX todo, what if no folder?
|
// XXX todo, what if no folder?
|
||||||
setupForAccountFromFolder(window.arguments[0].folder.URI);
|
setupForAccountFromFolder(window.arguments[0].folder.URI);
|
||||||
}
|
}
|
||||||
|
|
||||||
doSetOKCancel(onAccept, onCancel, doHelpButton);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onServerClick(event)
|
function onServerClick(event)
|
||||||
|
@ -184,8 +183,3 @@ function doHelpButton()
|
||||||
|
|
||||||
return false; // don't close the top-level window
|
return false; // don't close the top-level window
|
||||||
}
|
}
|
||||||
|
|
||||||
function onCancel()
|
|
||||||
{
|
|
||||||
return true; // close the top-level window
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,29 +2,28 @@
|
||||||
|
|
||||||
<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>
|
||||||
|
|
||||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
|
||||||
|
|
||||||
<?xul-overlay href="chrome://messenger/content/msgFolderPickerOverlay.xul"?>
|
<?xul-overlay href="chrome://messenger/content/msgFolderPickerOverlay.xul"?>
|
||||||
|
|
||||||
<!DOCTYPE window SYSTEM "chrome://messenger/locale/junkMail.dtd">
|
<!DOCTYPE window SYSTEM "chrome://messenger/locale/junkMail.dtd">
|
||||||
|
|
||||||
<window id="junkMail"
|
<dialog id="junkMail"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
xmlns:nc="http://home.netscape.com/NC-rdf#"
|
xmlns:nc="http://home.netscape.com/NC-rdf#"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
windowtype="mailnews:junk"
|
windowtype="mailnews:junk"
|
||||||
title="&window.title;"
|
title="&window.title;"
|
||||||
onload="onJunkMailLoad()"
|
onload="onJunkMailLoad();"
|
||||||
persist="screenX screenY width height">
|
buttons="accept,cancel,help"
|
||||||
|
ondialogaccept="return onAccept();"
|
||||||
|
ondialoghelp="return doHelpButton();">
|
||||||
|
|
||||||
<stringbundleset id="stringbundleset">
|
<script type="application/x-javascript" src="chrome://messenger/content/junkMail.js"/>
|
||||||
<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
|
<script type="application/x-javascript" src="chrome://messenger/content/widgetglue.js"/>
|
||||||
</stringbundleset>
|
|
||||||
|
|
||||||
<script type="application/x-javascript" src="chrome://messenger/content/junkMail.js"/>
|
<stringbundleset id="stringbundleset">
|
||||||
<script type="application/x-javascript" src="chrome://messenger/content/widgetglue.js"/>
|
<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
|
||||||
|
</stringbundleset>
|
||||||
|
|
||||||
<vbox>
|
|
||||||
<hbox align="center">
|
<hbox align="center">
|
||||||
<label value="&account.label;" accesskey="&account.accesskey;"/>
|
<label value="&account.label;" accesskey="&account.accesskey;"/>
|
||||||
<menulist oncommand="onServerClick(event);" id="server">
|
<menulist oncommand="onServerClick(event);" id="server">
|
||||||
|
@ -47,8 +46,8 @@
|
||||||
<button label="&viewLog.label;" accesskey="&viewLog.accesskey;" oncommand="junkLog()"/>
|
<button label="&viewLog.label;" accesskey="&viewLog.accesskey;" oncommand="junkLog()"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<description>&info1.label;</description>
|
<description width="1">&info1.label;</description>
|
||||||
<description>&info2.label;</description>
|
<description width="1">&info2.label;</description>
|
||||||
|
|
||||||
<checkbox id="level" oncommand="conditionallyEnableUI(null);" accesskey="&level.accesskey;" label="&level.label;"/>
|
<checkbox id="level" oncommand="conditionallyEnableUI(null);" accesskey="&level.accesskey;" label="&level.label;"/>
|
||||||
|
|
||||||
|
@ -96,7 +95,7 @@
|
||||||
</grid>
|
</grid>
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
|
|
||||||
<hbox autostretch="never" align="center">
|
<hbox align="center">
|
||||||
<spacer width="20px"/>
|
<spacer width="20px"/>
|
||||||
<checkbox id="purge" oncommand="conditionallyEnableUI('purge')" accesskey="&purge1.accesskey;" label="&purge1.label;"/>
|
<checkbox id="purge" oncommand="conditionallyEnableUI('purge')" accesskey="&purge1.accesskey;" label="&purge1.label;"/>
|
||||||
<textbox size="3" id="purgeInterval" />
|
<textbox size="3" id="purgeInterval" />
|
||||||
|
@ -104,10 +103,4 @@
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
<separator/>
|
</dialog>
|
||||||
|
|
||||||
<hbox id="okCancelHelpButtonsRight"/>
|
|
||||||
|
|
||||||
</vbox>
|
|
||||||
|
|
||||||
</window>
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче