summaryrefslogtreecommitdiffstats
path: root/client/components/cards/details.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/cards/details.js')
-rw-r--r--client/components/cards/details.js7
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({