summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-05 00:52:05 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-05 00:52:05 +0100
commitb6e255d905b3180e6d064c3dad253bf44b1e9368 (patch)
tree0aeb036ee2c61edc4e5f09c7fab3e777794d096c
parent6872677a6da03a2a2218a17fcf8b6a54cece9b3f (diff)
fixed invalid removal of card
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-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();
};