Removed strict requirement for having at least one event in calendar file

This commit is contained in:
mostafah%oeone.com 2004-05-28 22:20:14 +00:00
parent 19b8e8329f
commit e6de8678e1

View File

@ -709,17 +709,8 @@ calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalen
{
alert( "This doesn't appear to be a valid file. Here's what I got back from\n"+Channel.URI.spec+":\nResult:"+result );
} else {
//if we have only one event, open the event dialog.
var firstMatchLocation = result.indexOf( "BEGIN:VEVENT" );
if( firstMatchLocation == -1 )
{
alert( "There are no events in this file. Here's what I got from\n"+Channel.URI.spec+"\nResult: "+result );
}
else
{
onResponse( result );
retval = true;
}
onResponse( result );
retval = true;
}
if( gNextSubNodeToRefresh )
gCalendarWindow.calendarManager.refreshAllRemoteCalendars();