diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-27 15:37:56 +0200 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-27 16:43:42 +0200 |
commit | 8e06063d55d16207eed11ceaeb6a5f32bf4e7b4c (patch) | |
tree | 9887760596e43b476484c5ef286d09d487362a2a /webapp/cao-mobile.js | |
parent | 34f3ab900a9cac78acb7a10d1ed60555d98ff822 (diff) |
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 <duskcoder@gmail.com>
Diffstat (limited to 'webapp/cao-mobile.js')
-rw-r--r-- | webapp/cao-mobile.js | 2 |
1 files changed, 2 insertions, 0 deletions
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()) { |