From db4d92cabced576eca00b76f3334b9ef9ee40165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A4=AA?= Date: Wed, 25 Dec 2013 14:10:21 +1100 Subject: [PATCH] Show challenging as tournament status --- js/client-chat-tournament.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/client-chat-tournament.js b/js/client-chat-tournament.js index b35ef75ca..a3ffdd324 100644 --- a/js/client-chat-tournament.js +++ b/js/client-chat-tournament.js @@ -492,6 +492,8 @@ var score = elem.append('svg:text').attr('y', nodeSize.realHeight / 5); if (node.state === 'available') score.text("Waiting"); + else if (node.state === 'challenging') + score.text("Challenging"); else if (node.state === 'inprogress') score.append('svg:a').attr('xlink:href', app.root + toRoomid(node.room).toLowerCase()).classed('ilink', true).text("In-progress"); else if (node.state === 'finished') { @@ -550,6 +552,8 @@ $cell.text("Unavailable"); else if (cell.state === 'available') $cell.text("Waiting"); + else if (cell.state === 'challenging') + $cell.text("Challenging"); else if (cell.state === "inprogress") $cell.html('In-progress'); else if (cell.state === 'finished') {