Back out non-string parts of Bug 678255 (Advanced dialog for POP3 account showing the IMAP dialog) due to breaking the Thunderbird advanced server settings dialog. rs=bwinton. a=Standard8
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 18 Oct 2011 21:35:31 +0100
changeset 10876 6ae3394e74d008e1b192cec69fd94c1c58ceb148
parent 10875 7d0d937bdd8ad62d528893a401eed906a1fd4e25
child 10877 6b638748ad35019f4ea20fc31a211c59a6033ad3
child 10884 37a4cbbcb1e397ee122d198feccbbe22a4067c6b
push id6
push userbienvenu@nventure.com
push dateWed, 16 May 2012 22:24:51 +0000
treeherdertry-comm-central@ac395aea3008 [default view] [failures only]
reviewersbwinton, Standard8
bugs678255
Back out non-string parts of Bug 678255 (Advanced dialog for POP3 account showing the IMAP dialog) due to breaking the Thunderbird advanced server settings dialog. rs=bwinton. a=Standard8
mailnews/base/prefs/content/am-server-advanced.js
mailnews/base/prefs/content/am-server-advanced.xul
mailnews/base/prefs/content/am-server.js
--- a/mailnews/base/prefs/content/am-server-advanced.js
+++ b/mailnews/base/prefs/content/am-server-advanced.js
@@ -57,23 +57,16 @@ function getControls()
 function getLocalFoldersAccount()
 {
   var localFoldersServer = gAccountManager.localFoldersServer;
   return gAccountManager.FindAccountForServer(localFoldersServer);
 }
 
 function onLoad()
 {
-  var prettyName = gServerSettings.serverPrettyName;
-
-  if (prettyName)
-    document.getElementById("serverPrettyName").value = 
-      document.getElementById("bundle_prefs")
-              .getFormattedString("forAccount", [prettyName]);
-
   if (gServerSettings.serverType == "imap")
   {
     document.getElementById("pop3Panel").hidden = true;
   }
   else if (gServerSettings.serverType == "pop3")
   {
     var radioGroup = document.getElementById("folderStorage");
     document.getElementById("imapPanel").hidden = true;
--- a/mailnews/base/prefs/content/am-server-advanced.xul
+++ b/mailnews/base/prefs/content/am-server-advanced.xul
@@ -48,17 +48,16 @@
         title="&serverAdvanced.label;"
         buttons="accept,cancel"
         onload="onLoad();"
         ondialogaccept="return onOk();">
 
   <script type="application/javascript" src="am-server-advanced.js"/>
   <stringbundle id="bundle_prefs" src="chrome://messenger/locale/prefs.properties"/>
 
-    <label id="serverPrettyName"/>
     <!-- IMAP Panel -->
     <vbox id="imapPanel">
       <hbox>
         <label value="&serverDirectory.label;"
                accesskey="&serverDirectory.accesskey;"
                control="serverDirectory"/>
         <textbox amsa_persist="true" id="serverDirectory"/>
       </hbox>
--- a/mailnews/base/prefs/content/am-server.js
+++ b/mailnews/base/prefs/content/am-server.js
@@ -133,17 +133,16 @@ function setDivText(divname, value)
 function onAdvanced()
 {
   // Store the server type and, if an IMAP or POP3 server,
   // the settings needed for the IMAP/POP3 tab into the array
   var serverSettings = {};
   var serverType = document.getElementById("server.type").getAttribute("value");
   serverSettings.serverType = serverType;
 
-  serverSettings.serverPrettyName = gServer.prettyName;
 
   if (serverType == "imap")
   {
     serverSettings.dualUseFolders = document.getElementById("imap.dualUseFolders").checked;
     serverSettings.usingSubscription = document.getElementById("imap.usingSubscription").checked;
     serverSettings.useIdle = document.getElementById("imap.useIdle").checked;
     serverSettings.maximumConnectionsNumber = document.getElementById("imap.maximumConnectionsNumber").getAttribute("value");
     // string prefs