Bug 881694 - Clear Namespace text fields in IMAP advanced settings properly when switching accounts in the account manager. r=IanN, r=Neil
authoraceman <acelists@atlas.sk>
Thu, 11 Jul 2013 21:42:16 -0400
changeset 12724 6d0fe5c39609142f3bfa1aa727dee72b055f86ae
parent 12723 389cfc3d5e9fb3dfabcb26b63800848686e60c6d
child 12725 9b3d185ac2a9a232a4bf9b0a08140727faed0ec9
push id9327
push userryanvm@gmail.com
push dateFri, 12 Jul 2013 01:42:54 +0000
treeherdercomm-central@9b3d185ac2a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Neil
bugs881694
Bug 881694 - Clear Namespace text fields in IMAP advanced settings properly when switching accounts in the account manager. r=IanN, r=Neil
mailnews/base/prefs/content/AccountManager.js
--- a/mailnews/base/prefs/content/AccountManager.js
+++ b/mailnews/base/prefs/content/AccountManager.js
@@ -1324,16 +1324,23 @@ function setFormElementValue(formElement
   }
   else if (type == "textbox") {
     if (value == null || value == undefined) {
       formElement.value = null;
     } else {
       formElement.value = value;
     }
   }
+  else if (type == "label") {
+    if (value == null || value == undefined) {
+      formElement.value = "";
+    } else {
+      formElement.value = value;
+    }
+  }
 
   // let the form figure out what to do with it
   else {
     if (value == undefined) {
       if ("defaultValue" in formElement && formElement.defaultValue)
         formElement.value = formElement.defaultValue;
     }
     else