зеркало из https://github.com/mozilla/gecko-dev.git
fix for 39345 - remove save password from all UI
r=sspitzer
This commit is contained in:
Родитель
078a498e23
Коммит
5f34ec2aa2
|
@ -39,7 +39,7 @@
|
|||
>
|
||||
|
||||
<script language="javascript" src="SmtpServerEdit.js"/>
|
||||
|
||||
<keyset id="keyset"/>
|
||||
<box id="smtpServerEditor"/>
|
||||
<separator class="groove"/>
|
||||
<box id="okCancelButtons"/>
|
||||
|
|
|
@ -125,17 +125,12 @@ function refreshServerList()
|
|||
for (var i=0; i< selectedItems.length; i++)
|
||||
oldSelectedIds[i] = selectedItems[0].id;
|
||||
|
||||
// recreate <treechildren>
|
||||
// note - I tried creating the <treechildren> node pre-populated,
|
||||
// but the tree wouldn't notice the update
|
||||
dump("Removing " + serverList.firstChild.localName + "\n");
|
||||
if (serverList.firstChild &&
|
||||
serverList.firstChild.localName.toLowerCase() == "treechildren")
|
||||
serverList.removeChild(serverList.firstChild);
|
||||
var treeChildren = document.getElementById("smtpTreeChildren");
|
||||
|
||||
// remove all children
|
||||
while (treeChildren.hasChildNodes())
|
||||
treeChildren.removeChild(treeChildren.lastChild);
|
||||
|
||||
var treeChildren = document.createElement("treechildren");
|
||||
serverList.appendChild(treeChildren);
|
||||
|
||||
var defaultServer = smtpService.defaultServer;
|
||||
fillSmtpServers(treeChildren,smtpService.smtpServers, defaultServer);
|
||||
|
||||
|
|
|
@ -41,15 +41,13 @@
|
|||
<script language="javascript" src="chrome://global/content/strres.js"/>
|
||||
<script language="javascript" src="SmtpServerList.js"/>
|
||||
|
||||
<keyset>
|
||||
<key id="keyset"/>
|
||||
</keyset>
|
||||
<keyset id="keyset"/>
|
||||
|
||||
<box align="horizontal">
|
||||
<html flex="1">&smtpListDesc.label;</html>
|
||||
</box>
|
||||
<box align="horizontal" style="min-height: 10em; min-width: 30em">
|
||||
<tree id="smtpTree" onselect="onSelectionChange(event);" class="inset" flex="1">
|
||||
<tree id="smtpTree" onselect="onSelectionChange(event);" class="inset" flex="1" style="height: 30px">
|
||||
<treecolgroup>
|
||||
<treecol flex="1"/>
|
||||
</treecolgroup>
|
||||
|
@ -57,13 +55,13 @@
|
|||
</tree>
|
||||
<box align="vertical">
|
||||
<button id="addButton"
|
||||
onclick="onAdd(event);" value="&smtpListAdd.label;"/>
|
||||
oncommand="onAdd(event);" value="&smtpListAdd.label;"/>
|
||||
<button id="editButton" disabled="true"
|
||||
onclick="onEdit(event);" value="&smtpListEdit.label;"/>
|
||||
oncommand="onEdit(event);" value="&smtpListEdit.label;"/>
|
||||
<button id="deleteButton" disabled="true"
|
||||
onclick="onDelete(event);" value="&smtpListDelete.label;"/>
|
||||
oncommand="onDelete(event);" value="&smtpListDelete.label;"/>
|
||||
<button id="setDefaultButton" disabled="true"
|
||||
onclick="onSetDefault(event);" value="&smtpListSetDefault.label;"/>
|
||||
oncommand="onSetDefault(event);" value="&smtpListSetDefault.label;"/>
|
||||
</box>
|
||||
</box>
|
||||
<separator class="groove"/>
|
||||
|
|
|
@ -37,12 +37,10 @@ function initSmtpSettings(server) {
|
|||
gSmtpHostname = document.getElementById("smtp.hostname");
|
||||
gSmtpUseUsername = document.getElementById("smtp.useUsername");
|
||||
gSmtpAuthMethod = document.getElementById("smtp.authMethod");
|
||||
gSmtpSavePassword = document.getElementById("smtp.savePassword")
|
||||
|
||||
if (server) {
|
||||
gSmtpHostname.value = server.hostname;
|
||||
gSmtpUsername.value = server.username;
|
||||
gSmtpSavePassword.checked = server.savePassword;
|
||||
gSmtpAuthMethod.setAttribute("value", server.authMethod);
|
||||
// radio groups not implemented
|
||||
//document.getElementById("smtp.trySSL").value = server.trySSL;
|
||||
|
@ -74,7 +72,6 @@ function saveSmtpSettings(server)
|
|||
dump("Saved authmethod = " + server.authMethod +
|
||||
" but checked = " + gSmtpUseUsername.checked + "\n");
|
||||
server.username = gSmtpUsername.value;
|
||||
//server.savePassword = gSmtpSavePassword.checked;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,7 +79,6 @@ function onUseUsername(checkbox, dofocus)
|
|||
{
|
||||
if (checkbox.checked) {
|
||||
gSmtpUsername.removeAttribute("disabled");
|
||||
gSmtpSavePassword.removeAttribute("disabled");
|
||||
if (dofocus)
|
||||
gSmtpUsername.focus();
|
||||
if (gSavedUsername && gSavedUsername != "")
|
||||
|
@ -91,7 +87,6 @@ function onUseUsername(checkbox, dofocus)
|
|||
gSavedUsername = gSmtpUsername.value;
|
||||
gSmtpUsername.value = "";
|
||||
gSmtpUsername.setAttribute("disabled", "true");
|
||||
gSmtpSavePassword.setAttribute("disabled", "true");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
<text value="&userName.label;"/>
|
||||
<textfield wsm_persist="true" id="smtp.username"/>
|
||||
</box>
|
||||
<checkbox wsm_persist="true" id="smtp.savePassword" value="&savePassword.label;"/>
|
||||
</box>
|
||||
</box>
|
||||
<checkbox wsm_persist="true" id="smtp.isSecure" value="&isSecure.label;" oncommand="updateControls();"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче