From e6de8678e1d29e2bcec4b279d1904b66e6b6b08a Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Fri, 28 May 2004 22:20:14 +0000 Subject: [PATCH] Removed strict requirement for having at least one event in calendar file --- calendar/resources/content/calendarManager.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/calendar/resources/content/calendarManager.js b/calendar/resources/content/calendarManager.js index 9d01e11c766e..53599440efed 100644 --- a/calendar/resources/content/calendarManager.js +++ b/calendar/resources/content/calendarManager.js @@ -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();