add:  if (aCalendar.canRefresh) { var remoteCommand = document.getElementById("reload_remote_calendars"); remoteCommand.removeAttribute("disabled"); } 
context:     onCalendarRegistered: function(aCalendar) {        // Enable new calendars by default        getDisplayComposite().addCalendar(aCalendar);        setCalendarManagerUI();        document.getElementById("new_command").removeAttribute("disabled");        document.getElementById("new_todo_command").removeAttribute("disabled");    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7be7e40d2abfd227cbaa3a2dbb30063fa2a6852d/calendarManagement.js/buggy/calendar/resources/content/calendarManagement.js