summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-05 00:11:49 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-05 00:11:49 +0100
commitad92a8c1289ce11baed1f59ddf964ca07906846f (patch)
tree787dfc439ff35a5c4b4326daae3b13ead39d6355
parent079259b57be8bed9fb40b470f84306aa23a568a7 (diff)
fix desktop code in the common part
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--cao-common.js1
-rw-r--r--cao-desktop.js1
2 files changed, 1 insertions, 1 deletions
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();
};