diff options
Diffstat (limited to 'client/components/cards/details.js')
-rw-r--r-- | client/components/cards/details.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/components/cards/details.js b/client/components/cards/details.js index 3f141622..f3d03793 100644 --- a/client/components/cards/details.js +++ b/client/components/cards/details.js @@ -77,7 +77,12 @@ Template.cardDetailsActionsPopup.events({ } }); Popup.close(); - } + }, + 'click .js-delete': Popup.afterConfirm('cardDelete', function() { + var cardId = this._id; + Cards.remove(cardId); + Popup.close(); + }) }); Template.moveCardPopup.events({ |