From ad92a8c1289ce11baed1f59ddf964ca07906846f Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 5 Jun 2015 00:11:49 +0100 Subject: fix desktop code in the common part Signed-off-by: Olivier Gayot --- cao-common.js | 1 - cao-desktop.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cao-common.js b/cao-common.js index 145173c..1047845 100644 --- a/cao-common.js +++ b/cao-common.js @@ -74,7 +74,6 @@ var CAO = function() { /* XXX intentional fallback */ case 'view_player_cards': if (response['status'] == 0) { - $('#white_cards').show(); for (var i in response['result']) { var idx = response['result'][i][0]; var desc = response['result'][i][1]; diff --git a/cao-desktop.js b/cao-desktop.js index bb6f4e1..ee7dd3b 100644 --- a/cao-desktop.js +++ b/cao-desktop.js @@ -6,6 +6,7 @@ $(document).ready(function() { cao.on_join_game_ok = function() { $('#btn_join').hide(); $('#btn_pick_black').show(); + $('#white_cards').show(); }; -- cgit v1.2.3