|
|
@ -70,7 +70,6 @@ Messages.calendar_deleteConfirm = "Are you sure you want to delete this calendar
|
|
|
|
Messages.calendar_deleteTeamConfirm = "Are you sure you want to delete this calendar from this team?";
|
|
|
|
Messages.calendar_deleteTeamConfirm = "Are you sure you want to delete this calendar from this team?";
|
|
|
|
Messages.calendar_deleteOwned = " It will still be visible for the users it has been shared with.";
|
|
|
|
Messages.calendar_deleteOwned = " It will still be visible for the users it has been shared with.";
|
|
|
|
Messages.calendar_errorNoCalendar = "No editable calendar selected!";
|
|
|
|
Messages.calendar_errorNoCalendar = "No editable calendar selected!";
|
|
|
|
Messages.calendar_myCalendars = "My calendars";
|
|
|
|
|
|
|
|
Messages.calendar_tempCalendar = "Viewing";
|
|
|
|
Messages.calendar_tempCalendar = "Viewing";
|
|
|
|
Messages.calendar_import = "Import to my calendars";
|
|
|
|
Messages.calendar_import = "Import to my calendars";
|
|
|
|
Messages.calendar_import_temp = "Import this calendar";
|
|
|
|
Messages.calendar_import_temp = "Import this calendar";
|
|
|
@ -318,7 +317,6 @@ Messages.calendar_noNotification = "None";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// XXX Note: always create calendars in your own proxy. If you want a team calendar, you can share it with the team later.
|
|
|
|
|
|
|
|
var editCalendar = function (id) {
|
|
|
|
var editCalendar = function (id) {
|
|
|
|
var isNew = !id;
|
|
|
|
var isNew = !id;
|
|
|
|
var data = APP.calendars[id];
|
|
|
|
var data = APP.calendars[id];
|
|
|
@ -453,7 +451,7 @@ Messages.calendar_noNotification = "None";
|
|
|
|
pathname: "/calendar/",
|
|
|
|
pathname: "/calendar/",
|
|
|
|
friends: friends,
|
|
|
|
friends: friends,
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
password: cal.password, // XXX support passwords
|
|
|
|
password: cal.password,
|
|
|
|
calendar: {
|
|
|
|
calendar: {
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
color: color,
|
|
|
|
color: color,
|
|
|
@ -480,7 +478,7 @@ Messages.calendar_noNotification = "None";
|
|
|
|
var href = Hash.hashToHref(h.editHash || h.viewHash, 'calendar');
|
|
|
|
var href = Hash.hashToHref(h.editHash || h.viewHash, 'calendar');
|
|
|
|
Access.getAccessModal(common, {
|
|
|
|
Access.getAccessModal(common, {
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
password: cal.password, // XXX support passwords
|
|
|
|
password: cal.password,
|
|
|
|
calendar: {
|
|
|
|
calendar: {
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
color: color,
|
|
|
|
color: color,
|
|
|
@ -721,8 +719,13 @@ Messages.calendar_noNotification = "None";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var myCalendars = filter(1);
|
|
|
|
var myCalendars = filter(1);
|
|
|
|
if (myCalendars.length) {
|
|
|
|
if (myCalendars.length) {
|
|
|
|
|
|
|
|
var user = metadataMgr.getUserData();
|
|
|
|
|
|
|
|
var avatar = h('span.cp-avatar');
|
|
|
|
|
|
|
|
var name = user.name || Messages.anonymous;
|
|
|
|
|
|
|
|
common.displayAvatar($(avatar), user.avatar, name);
|
|
|
|
APP.$calendars.append(h('div.cp-calendar-team', [
|
|
|
|
APP.$calendars.append(h('div.cp-calendar-team', [
|
|
|
|
h('span', Messages.calendar_myCalendars)
|
|
|
|
avatar,
|
|
|
|
|
|
|
|
h('span.cp-name', {title: name}, name)
|
|
|
|
]));
|
|
|
|
]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
myCalendars.forEach(function (id) {
|
|
|
|
myCalendars.forEach(function (id) {
|
|
|
|