diff --git a/www/common/outer/team.js b/www/common/outer/team.js index c5423ff7b..0ec224984 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -348,7 +348,7 @@ define([ }); }, true); }).nThen(function () { - if (ctx.store.calendar) { ctx.store.calendar.openTeam(id); } + if (ctx.store.modules.calendar) { ctx.store.modules.calendar.openTeam(id); } cb(); }); }; @@ -407,6 +407,7 @@ define([ }); } delete ctx.onReadyHandlers[id]; + if (ctx.store.modules.calendar) { ctx.store.modules.calendar.openTeam(id); } cb(); });