Bug 340949: use default calendar calId, may be different from userId

This commit is contained in:
daniel.boelzle%sun.com 2006-11-07 10:20:31 +00:00
Родитель 112eb3c61f
Коммит 907a814697
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -685,7 +685,12 @@ calWcapSession.prototype = {
get userId() { return this.m_userId; }, get userId() { return this.m_userId; },
m_defaultCalId: null, m_defaultCalId: null,
get defaultCalId() { return this.m_defaultCalId || this.userId; }, get defaultCalId() {
if (this.m_defaultCalId)
return this.m_defaultCalId;
var list = this.getUserPreferences("X-NSCP-WCAP-PREF-icsCalendar", {});
return ((list && list.length > 0) ? list[0] : this.userId);
},
get isLoggedIn() { return this.m_sessionId != null; }, get isLoggedIn() { return this.m_sessionId != null; },