add:      CalendarObject.Id = node.resource.Value;    calendarColorStyleRuleUpdate( CalendarObject ); 
context: calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){   var now = new Date();   var name = "calendar"+now.getTime();   CalendarObject.active = true;   CalendarObject.remotePath = CalendarObject.remotePath.replace( "webcal:", "http:" );   var node = this.rootContainer.addNode(name);   node.setAttribute("http://home.netscape.com/NC-rdf#active", "true");   node.setAttribute("http://home.netscape.com/NC-rdf#serverNumber", this.rootContainer.getSubNodes().length);   node.setAttribute("http://home.netscape.com/NC-rdf#name", CalendarObject.name);      var profileFile;   if( CalendarObject.path == "" )   {      //they didn't set a path in the box, that's OK, its not required.      profileFile = this.getProfileDirectory();      profileFile.append("Calendar");      profileFile.append("CalendarDataFile"+this.rootContainer.getSubNodes().length+".ics");      CalendarObject.path = profileFile.path;   }      node.setAttribute("http://home.netscape.com/NC-rdf#path", CalendarObject.path);   // CofC save off the color of the new calendar   node.setAttribute("http://home.netscape.com/NC-rdf#color", CalendarObject.color);      if( CalendarObject.remotePath.indexOf( "http://" ) != -1 ||       CalendarObject.remotePath.indexOf( "https://" ) != -1 ||       CalendarObject.remotePath.indexOf( "ftp://" ) != -1 )   {      profileFile = this.getProfileDirectory();      profileFile.append( "Calendar" );      profileFile.append("RemoteCalendar"+this.rootContainer.getSubNodes().length+".ics");      node.setAttribute("http://home.netscape.com/NC-rdf#remote", "true");            node.setAttribute("http://home.netscape.com/NC-rdf#remotePath", CalendarObject.remotePath);      node.setAttribute("http://home.netscape.com/NC-rdf#publishAutomatically", CalendarObject.publishAutomatically);      node.setAttribute("http://home.netscape.com/NC-rdf#username", CalendarObject.username);      node.setAttribute("http://home.netscape.com/NC-rdf#password", CalendarObject.password);      this.retrieveAndSaveRemoteCalendar( node );            dump( "Remote Calendar Number "+this.rootContainer.getSubNodes().length+" Added" );   }   else   {      node.setAttribute("http://home.netscape.com/NC-rdf#remote", "false");            dump( "Calendar Number "+CalendarObject.serverNumber+" Added" );   }      this.rdf.flush();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9c1efb53b67696ef33b6eaba8ebc3e677b048e96/calendarManager.js/clean/calendar/resources/content/calendarManager.js