Fixing if statement for imap URLs.

git-svn-id: svn://10.0.0.236/trunk@129337 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mikep%oeone.com
2002-09-12 13:16:31 +00:00
parent f55fb874fb
commit 90fc17aa18

View File

@@ -442,17 +442,24 @@ calendarManager.prototype.checkCalendarURL = function calMan_checkCalendarURL( C
if( calendarSubscribed === false )
{
//not subscribed, prompt the user to do so.
var arrayForNames = CalendarURL.split( "/" );
var CalendarNameWithExtension = arrayForNames[ arrayForNames.length - 1 ];
var CalendarName = CalendarNameWithExtension.replace( ".ics", "" );
if( CalendarURL.indexOf( "imap://" ) != -1 )
{
//this is an imap email message, download it to a file and show it.
alert( "We don't yet support email messages" );
}
else
{
//not subscribed, prompt the user to do so.
var arrayForNames = CalendarURL.split( "/" );
var CalendarNameWithExtension = arrayForNames[ arrayForNames.length - 1 ];
var CalendarName = CalendarNameWithExtension.replace( ".ics", "" );
this.launchAddCalendarDialog( CalendarName, CalendarURL );
this.launchAddCalendarDialog( CalendarName, CalendarURL );
}
}
else
{
//calendarSubscribed is the subscribed calendar object.
}