diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-23 15:18:38 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-23 15:18:38 +0100 |
commit | 349d467d9bae3e8d2cfd121ab63ad437a8e934bd (patch) | |
tree | 969a40b648c9a0b674ab5c608af9147252799762 /webapp/cao-common.js | |
parent | f706345678fb53464b4aaa821fb21b9b48894150 (diff) |
handle the case when no cards are collected
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'webapp/cao-common.js')
-rw-r--r-- | webapp/cao-common.js | 4 |
1 files changed, 4 insertions, 0 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) { |