|
|
@ -1349,8 +1349,15 @@ define([
|
|
|
|
Messages._getKey('team_inviteFromMsg',
|
|
|
|
Messages._getKey('team_inviteFromMsg',
|
|
|
|
[Util.fixHTML(getDisplayName(json.author.displayName)),
|
|
|
|
[Util.fixHTML(getDisplayName(json.author.displayName)),
|
|
|
|
Util.fixHTML(json.teamName)])));
|
|
|
|
Util.fixHTML(json.teamName)])));
|
|
|
|
if (json.message) {
|
|
|
|
if (typeof(json.message) === 'string') {
|
|
|
|
$div.append(h('div.cp-teams-invite-message', json.message));
|
|
|
|
var message = h('div.cp-teams-invite-message');
|
|
|
|
|
|
|
|
json.message.split('\n').forEach(line => {
|
|
|
|
|
|
|
|
if (line.trim()) {
|
|
|
|
|
|
|
|
message.appendChild(h('span', line));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message.appendChild(h('br'));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$div.append(message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
}).nThen(function (waitFor) {
|
|
|
|
}).nThen(function (waitFor) {
|
|
|
|