From 98d7278d08dabc9e1da5dcd9a9bb968ab369520e Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 7 Jun 2015 18:55:26 +0200 Subject: Add a UI to restore archived cards --- client/components/cards/details.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/components/cards/details.js') 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({ -- cgit v1.2.3-1-g7c22