rem: gDialog.RadioGroup.setAttribute("collapsed", gListElement ? "false" : "true"); 
add: gDialog.RadioGroup.collapsed = !gListElement; 
context: function Startup(){  var editor = GetCurrentEditor();  if (!editor)  {    window.close();    return;  }  gDialog.ListTypeList = document.getElementById("ListType");  gDialog.BulletStyleList = document.getElementById("BulletStyle");  gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel");  gDialog.StartingNumberInput = document.getElementById("StartingNumber");  gDialog.StartingNumberLabel = document.getElementById("StartingNumberLabel");  gDialog.AdvancedEditButton = document.getElementById("AdvancedEditButton1");  gDialog.RadioGroup = document.getElementById("RadioGroup");  gDialog.ChangeAllRadio = document.getElementById("ChangeAll");  gDialog.ChangeSelectedRadio = document.getElementById("ChangeSelected");    // Try to get an existing list(s)  var mixedObj = { value: null };  try {    gListType = editor.getListState(mixedObj, {}, {}, {} );    // We may have mixed list and non-list, or > 1 list type in selection    gMixedListSelection = mixedObj.value;    // Get the list element at the anchor node    gListElement = editor.getElementOrParentByTagName("list", null);  } catch (e) {}  // The copy to use in AdvancedEdit  if (gListElement)    globalElement = gListElement.cloneNode(false);  // Show extra options for changing entire list if we have one already.  gDialog.RadioGroup.setAttribute("collapsed", gListElement ? "false" : "true");  if (gListElement)  {    // Radio button index is persistant    if (gDialog.RadioGroup.getAttribute("index") == "1")      gDialog.RadioGroup.selectedItem = gDialog.ChangeSelectedRadio;    else      gDialog.RadioGroup.selectedItem = gDialog.ChangeAllRadio;  }  InitDialog();  gOriginalListType = gListType;  gDialog.ListTypeList.focus();  SetWindowLocation();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b1c736039e4613f08fbb49d15711f0dbf686da2f/EdListProps.js/buggy/editor/ui/dialogs/content/EdListProps.js