summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cao-common.js2
-rw-r--r--cao-desktop.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/cao-common.js b/cao-common.js
index 2e62d2b..3064cd7 100644
--- a/cao-common.js
+++ b/cao-common.js
@@ -94,7 +94,7 @@ var CAO = function() {
};
map_handle_notif['received_card'] = function(result) {
- var idx = result['card']['idx'];
+ var idx = result['card']['id'];
var desc = result['card']['desc'];
white_cards[idx] = desc;
diff --git a/cao-desktop.js b/cao-desktop.js
index 2f1ee50..4e0a9d9 100644
--- a/cao-desktop.js
+++ b/cao-desktop.js
@@ -40,7 +40,7 @@ $(document).ready(function() {
};
- cao.on_played_white_card_ok = function(idx) {
+ cao.on_play_white_card_ok = function(idx) {
identifier = 'white_card_' + idx;
$('#' + identifier).remove();
};