rem: var showFixedValues = gRedirectorType != null; 
add: var showFixedValues = gRedirectorType ? true : false; 
context: function setupFixedUI(){  // if the redirectorType is non-empty, then the fixedValue elements should be shown  //  // one day, add code that allows for the redirector type to specify  // to show fixed values or not.  see bug #132737  // use gRedirectorType to get a pref like  // "mail.accountmanager." + gRedirectorType + ".show_fixed_values"  //  // but for now, this isn't needed.  we'll assume those who implement  // redirector types want to show fixed values.  var showFixedValues = gRedirectorType != null;  var controls = [document.getElementById("fixedServerName"),                   document.getElementById("fixedUserName"),                  document.getElementById("fixedServerPort")];  var len = controls.length;    for (var i=0; i<len; i++) {    var fixedElement = controls[i];    var otherElement = document.getElementById(fixedElement.getAttribute("use"));    if (showFixedValues) {      // get the value from the non-fixed element.      var fixedElementValue = otherElement.value;      fixedElement.setAttribute("value", fixedElementValue);      otherElement.setAttribute("collapsed","true");      fixedElement.removeAttribute("collapsed");    }    else {      fixedElement.setAttribute("collapsed","true");      otherElement.removeAttribute("collapsed");    }  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/2ef107df7b6e49ad8c55b66a0f73bcc6223de259/am-server.js/buggy/mailnews/base/prefs/resources/content/am-server.js