rem: refreshEventTree( getAndSetEventTable() );  refreshToDoTree( false );  CalendarManager.CalendarWindow.currentView.refreshEvents(); 
add: refreshView(); 
context: calendarManager.prototype.retrieveAndSaveRemoteCalendar = function calMan_retrieveAndSaveRemoteCalendar( ThisCalendarObject, onResponseExtra ){   //the image doesn't always exist. If it doesn't exist, it causes problems, so check for it here   document.getElementById( ThisCalendarObject.getSubject() ).childNodes[1].childNodes[0].setAttribute( "synching", "true" );   var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);      var Path = ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#remotePath" );   var Channel = ioService.newChannel( Path, null, null );   Channel.loadFlags |= Components.interfaces.nsIRequest.LOAD_BYPASS_CACHE;   var CalendarManager = this;      var onResponse = function( CalendarData )   {      //save the stream to a file.      //saveDataToFile( ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#path" ), CalendarData, "UTF-8" );       saveDataToFile( ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#path" ), CalendarData, null );            if( onResponseExtra )         onResponseExtra();            CalendarManager.removeCalendar( ThisCalendarObject );         if( ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#active" ) == "true" )      {         CalendarManager.addCalendar( ThisCalendarObject );      }            refreshEventTree( getAndSetEventTable() );            refreshToDoTree( false );            CalendarManager.CalendarWindow.currentView.refreshEvents();            document.getElementById( ThisCalendarObject.getSubject() ).childNodes[1].childNodes[0].removeAttribute( "synching" );   }   var CalendarData = this.getRemoteCalendarText( Channel, onResponse, null );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/240dd49ab9c9df1080f7f9c8b33cb1c7311dffd8/calendarManager.js/clean/calendar/resources/content/calendarManager.js