From 8e06063d55d16207eed11ceaeb6a5f32bf4e7b4c Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 27 Jun 2015 15:37:56 +0200 Subject: handle the disconnection of the judge in case the judge disconnects, we give back the played cards to the players and they are demanded to elect a new one Signed-off-by: Olivier Gayot --- webapp/cao-mobile.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webapp/cao-mobile.js') diff --git a/webapp/cao-mobile.js b/webapp/cao-mobile.js index c733df8..acac68e 100644 --- a/webapp/cao-mobile.js +++ b/webapp/cao-mobile.js @@ -51,6 +51,8 @@ $(document).ready(function() { switch (state) { case 'waiting_judge': $become_judge.show(); + $white_cards.attr('disabled', true); + $white_cards.addClass('read-only'); break; case 'waiting_designation': if (cao.is_judge()) { -- cgit v1.2.3