From 4d21ca99c1d97d95ba8a847efc5487ac6739a5a5 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 29 Jan 2021 13:09:51 +0100 Subject: [PATCH] Add missing handler on teams 'new' cards --- www/teams/inner.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/teams/inner.js b/www/teams/inner.js index ce08c9ee5..586ccc8df 100644 --- a/www/teams/inner.js +++ b/www/teams/inner.js @@ -455,10 +455,16 @@ define([ created++; } if (team.empty) { - list.push(h('div.cp-team-list-team.empty'+createCls, [ + var createTeamDiv = h('div.cp-team-list-team.empty'+createCls, [ h('span.cp-team-list-name.empty', Messages.team_listSlot), createBtn - ])); + ]); + list.push(createTeamDiv); + if (createCls) { + $(createTeamDiv).click(function () { + $('div.cp-team-cat-create').click(); + }); + } return; } var avatar = h('span.cp-avatar');