mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 06:33:18 +00:00
(js) Fix pos. of personal calendar after rename
This commit is contained in:
@@ -93,8 +93,9 @@
|
||||
list = this.$calendars;
|
||||
|
||||
sibling = _.find(list, function(o) {
|
||||
return (o.id != 'personal' &&
|
||||
o.name.localeCompare(calendar.name) === 1);
|
||||
return (calendar.id == 'personal' ||
|
||||
(o.id != 'personal' &&
|
||||
o.name.localeCompare(calendar.name) === 1));
|
||||
});
|
||||
i = sibling ? _.indexOf(_.pluck(list, 'id'), sibling.id) : 1;
|
||||
list.splice(i, 0, calendar);
|
||||
|
||||
Reference in New Issue
Block a user