rem: if (arguments.newFolderName) 
add: if (arguments.newFolderName) 
context: function onLoad(){  var arguments = window.arguments[0];  gDialog = {};  gDialog.OKButton = document.documentElement.getButton("accept");  gDialog.nameField = document.getElementById("name");  gDialog.nameField.focus();  // call this when OK is pressed  msgWindow = arguments.msgWindow;   // pre select the folderPicker, based on what they selected in the folder pane  gDialog.picker = document.getElementById("msgNewFolderPicker");  MsgFolderPickerOnLoad("msgNewFolderPicker");   initializeSearchWidgets();  setSearchScope(nsMsgSearchScope.offlineMail);    if (arguments.editExistingFolder)    InitDialogWithVirtualFolder(arguments.preselectedURI);  else // we are creating a new virtual folder  {    // it is possible that we were given arguments to pre-fill the dialog with...    gSearchTermSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);    if (arguments.searchTerms) // then add them to our search session    {      var count = arguments.searchTerms.Count();      for (var searchIndex = 0; searchIndex < count; )        gSearchTermSession.appendTerm(arguments.searchTerms.QueryElementAt(searchIndex++, Components.interfaces.nsIMsgSearchTerm));    }    if (arguments.preselectedURI)    {      var folderToSearch = GetMsgFolderFromUri(arguments.preselectedURI, false);      SetFolderPicker(folderToSearch.parent ? folderToSearch.parent.URI : arguments.preselectedURI, "msgNewFolderPicker");      // if the passed in URI is not a server then pre-select it as the folder to search      if (!folderToSearch.isServer)        gSearchFolderURIs = arguments.preselectedURI;    }    if (arguments.newFolderName)       document.getElementById("name").value = arguments.newFolderName;    if (arguments.searchFolderURIs)      gSearchFolderURIs = arguments.searchFolderURIs;    setupSearchRows(gSearchTermSession.searchTerms);    doEnabling(); // we only need to disable/enable the OK button for new virtual folders  }    updateOnlineSearchState();  doSetOKCancel(onOK, onCancel);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/0c3e75f9269436ce8074f0e484e530cfc7260c6f/virtualFolderProperties.js/buggy/mailnews/base/resources/content/virtualFolderProperties.js