diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/cao-common.js | 4 | ||||
-rw-r--r-- | webapp/cao-mobile.js | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/webapp/cao-common.js b/webapp/cao-common.js index 2742606..6d92de7 100644 --- a/webapp/cao-common.js +++ b/webapp/cao-common.js @@ -146,6 +146,10 @@ var CAO = function() { }); self.on_show_played_card(i, desc); } + + if (!result.length) { + self.gen_callback_played_card(null)(); + } }; map_handle_response_ok['designate_card'] = function(result) { diff --git a/webapp/cao-mobile.js b/webapp/cao-mobile.js index 3a35b24..c733df8 100644 --- a/webapp/cao-mobile.js +++ b/webapp/cao-mobile.js @@ -143,7 +143,6 @@ $(document).ready(function() { }; cao.on_designate_card_ok = function(idx) { - console.log('will remove : [' + idx + ']'); $played_cards.empty(); $played_cards.hide(); |