Fixing if statement for imap URLs.

This commit is contained in:
mikep%oeone.com 2002-09-12 13:16:31 +00:00
Родитель 83f1a980a8
Коммит afb3c8ec07
1 изменённых файлов: 13 добавлений и 6 удалений

Просмотреть файл

@ -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.
}