From b6e255d905b3180e6d064c3dad253bf44b1e9368 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 5 Jun 2015 00:52:05 +0100 Subject: fixed invalid removal of card Signed-off-by: Olivier Gayot --- cao-common.js | 2 +- cao-desktop.js | 2 +- 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(); }; -- cgit v1.2.3