mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Removed strict requirement for having at least one event in calendar file
This commit is contained in:
parent
19b8e8329f
commit
e6de8678e1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user