Bug 86986. Disable location textfield when mail startup checkbox is off. Patch by Stephen Walker <walk84@yahoo.com> r=ssu, sr=sspitzer

This commit is contained in:
stephend%netscape.com 2002-06-05 00:00:53 +00:00
Родитель 3351ad0884
Коммит 439581a3bb
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -9,6 +9,8 @@ function Startup()
}
if (startupFunc)
eval(startupFunc);
StartPageCheck();
}
function setColorWell(menu)
@ -22,6 +24,13 @@ function setColorWell(menu)
colorWell.style.backgroundColor = color;
}
function StartPageCheck()
{
var checked = document.getElementById("mailnewsStartPageEnabled").checked;
var field = document.getElementById("mailnewsStartPageUrl");
field.disabled = !checked;
}
function setHomePageToDefaultPage(folderFieldId)
{
var homePageField = document.getElementById(folderFieldId);

Просмотреть файл

@ -32,6 +32,8 @@ Contributor(s):
onload="parent.initPanel('chrome://messenger/content/pref-mailnews.xul');"
headertitle="&pane.title;">
<script type="application/x-javascript" src="chrome://messenger/content/pref-mailnews.js"/>
<script type="application/x-javascript">
<![CDATA[
var _elementIDs = ["mailPaneConfig", "mailnewsConfirmMoveFoldersToTrash",
@ -39,7 +41,6 @@ Contributor(s):
"newMailNotification", "newMailNotificationAlert", "mailWarnOnSendAccelKey" ];
]]>
</script>
<script type="application/x-javascript" src="chrome://messenger/content/pref-mailnews.js"/>
<groupbox>
<caption label="&windowSettings.label;"/>
@ -92,7 +93,7 @@ Contributor(s):
<caption label="&messengerStartPage.label;"/>
<hbox align="center">
<checkbox id="mailnewsStartPageEnabled" label="&enableStartPage.label;"
prefstring="mailnews.start_page.enabled"/>
prefstring="mailnews.start_page.enabled" oncommand="StartPageCheck();"/>
</hbox>
<hbox align="center">