rem:  gUpdate = false; 
context: function editDirectory(){  var args = { selectedDirectory: null,               selectedDirectoryString: null,               result: false};  if(gCurrentDirectoryServer && gCurrentDirectoryServerId) {    args.selectedDirectory = gCurrentDirectoryServer;    args.selectedDirectoryString = gCurrentDirectoryServerId;    window.openDialog("chrome://messenger/content/addressbook/pref-directory-add.xul",                      "editDirectory", "chrome,modal=yes,resizable=no", args);  }  if(gUpdate)   {    // directory server properties have changed. So, update the      // LDAP Directory Servers dialog.      var directoriesTree = document.getElementById("directoriesTree");     var selectedNode = directoriesTree.selectedItems[0];     var row  =  selectedNode.firstChild;     var cell =  row.firstChild;     cell.setAttribute('label', gNewServer);     cell.setAttribute('string', gNewServerString);    // set gUpdate to false since we have updated the server name in the list.    gUpdate = false;    // window.opener is either global pref window or     // mail/news account settings window.    // set window.opener.gRefresh to true such that the     // dropdown list box gets updated     window.opener.gRefresh = true;   } }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/986e58d4de64a5fee3aaf0132ebfebd49b27d425/pref-directory.js/buggy/mailnews/addrbook/prefs/resources/content/pref-directory.js