rem: if( document.getElementById( "calendar-list-image-"+ThisCalendarObject.getAttribute( "http: document.getElementById( "calendar-list-image-"+ThisCalendarObject.getAttribute( "http: 
add: document.getElementById( ThisCalendarObject.getSubject() ).childNodes[1].childNodes[0].setAttribute( "synching", "true" ); 
context: calendarManager.prototype.retrieveAndSaveRemoteCalendar = function calMan_retrieveAndSaveRemoteCalendar( ThisCalendarObject ){   //the image doesn't always exist. If it doesn't exist, it causes problems, so check for it here   if( document.getElementById( "calendar-list-image-"+ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#serverNumber" ) ) )      document.getElementById( "calendar-list-image-"+ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#serverNumber" ) ).setAttribute( "synching", "true" );   var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);      var Channel = ioService.newChannel( ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#remotePath" ), null, null );   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" );            CalendarManager.removeCalendar( ThisCalendarObject );         if( ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#active" ) == "true" )      {         CalendarManager.addCalendar( ThisCalendarObject.getAttribute( "http://home.netscape.com/NC-rdf#path" ) );      }            refreshEventTree( getAndSetEventTable() );            refreshToDoTree( false );            CalendarManager.CalendarWindow.currentView.refreshEvents();         //document.getElementById( "calendar-list-image-"+calendarToGet.getAttribute( "http://home.netscape.com/NC-rdf#serverNumber" ) ).removeAttribute( "synching" );   }   var CalendarData = this.getRemoteCalendarText( Channel, onResponse, null );   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f232c5ee3e73d3cdbeaf7bc07e1ee0e2a6bf256a/calendarManager.js/buggy/calendar/resources/content/calendarManager.js