Allow sending teams larger than chat limit

This commit is contained in:
Guangcong Luo
2013-05-04 01:19:02 -07:00
parent 2f741489d8
commit 865bdea5bb

View File

@@ -282,7 +282,7 @@
if (app.user.teams[teamIndex]) team = app.user.teams[teamIndex].team;
$(target).closest('.challenge').remove();
if (team) app.send('/saveteam '+$.toJSON(team));
if (team) app.send('/utm '+$.toJSON(team));
app.send('/accept '+userid);
},
rejectChallenge: function(i, target) {
@@ -305,7 +305,7 @@
buf += '<p class="buttonbar"><button name="cancelChallenge">Cancel</button></p></form>';
$(target).closest('.challenge').html(buf);
if (team) app.send('/saveteam '+$.toJSON(team));
if (team) app.send('/utm '+$.toJSON(team));
app.send('/challenge '+userid+', '+format);
},
cancelChallenge: function(i, target) {