rem:  ClearCSSInputWidgets();   BuildHTMLAttributeNameList(); 
add:  SetTextboxFocus(gDialog.AddHTMLAttributeNameInput); 
context: function Startup(){  // This is the return value for the parent,  // who only needs to know if OK was clicked  window.opener.AdvancedEditOK = false;  if (!InitEditorShell())    return;  // Element to edit is passed in  if (!window.arguments[1])  {    dump("Advanced Edit: Element to edit not supplied\n");    window.close();    return;  }  // The actual element edited (not a copy!)  gElement = window.arguments[1];  // place the tag name in the header  var tagLabel = document.getElementById("tagLabel");  tagLabel.setAttribute("value", ("<" + gElement.localName + ">"));  // Create dialog object to store controls for easy access  gDialog.AddHTMLAttributeNameInput  = document.getElementById("AddHTMLAttributeNameInput");  // We use a <deck> to switch between editable menulist and textbox  gDialog.AddHTMLAttributeValueDeck     = document.getElementById("AddHTMLAttributeValueDeck");  gDialog.AddHTMLAttributeValueMenulist = document.getElementById("AddHTMLAttributeValueMenulist");  gDialog.AddHTMLAttributeValueTextbox  = document.getElementById("AddHTMLAttributeValueTextbox");  gDialog.AddHTMLAttributeValueInput    = gDialog.AddHTMLAttributeValueTextbox;  gDialog.AddHTMLAttributeTree          = document.getElementById("HTMLATree");  gDialog.AddCSSAttributeNameInput      = document.getElementById("AddCSSAttributeNameInput");  gDialog.AddCSSAttributeValueInput     = document.getElementById("AddCSSAttributeValueInput");  gDialog.AddCSSAttributeTree           = document.getElementById("CSSATree");  gDialog.AddJSEAttributeNameList       = document.getElementById("AddJSEAttributeNameList");  gDialog.AddJSEAttributeValueInput     = document.getElementById("AddJSEAttributeValueInput");  gDialog.AddJSEAttributeTree           = document.getElementById("JSEATree");  gDialog.okButton                      = document.documentElement.getButton("accept");  // build the attribute trees  BuildHTMLAttributeTable();  BuildCSSAttributeTable();  BuildJSEAttributeTable();    // Build attribute name arrays for menulists  BuildJSEAttributeNameList();  // No menulists for CSS panel (yet), so just clear input fields  ClearCSSInputWidgets();  // Do this last -- sets focus to HTML Name menulist  BuildHTMLAttributeNameList();  // size the dialog properly  window.sizeToContent();  SetWindowLocation();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/515fee5cbbc1a7ba81de8a054e4c79098563f0d1/EdAdvancedEdit.js/buggy/editor/ui/dialogs/content/EdAdvancedEdit.js