diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-06-07 18:55:26 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-06-07 18:55:26 +0200 |
commit | 98d7278d08dabc9e1da5dcd9a9bb968ab369520e (patch) | |
tree | fcb2d6e8459a65596b611bf833ab5e458524c2bb /client/components/cards/minicard.js | |
parent | 915a7e5c6865548ee3664ec67f328f815480a761 (diff) | |
download | wekan-98d7278d08dabc9e1da5dcd9a9bb968ab369520e.tar.gz wekan-98d7278d08dabc9e1da5dcd9a9bb968ab369520e.tar.bz2 wekan-98d7278d08dabc9e1da5dcd9a9bb968ab369520e.zip |
Add a UI to restore archived cards
Diffstat (limited to 'client/components/cards/minicard.js')
-rw-r--r-- | client/components/cards/minicard.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/client/components/cards/minicard.js b/client/components/cards/minicard.js index 8f229be8..70751152 100644 --- a/client/components/cards/minicard.js +++ b/client/components/cards/minicard.js @@ -5,41 +5,5 @@ BlazeComponent.extendComponent({ template: function() { return 'minicard'; - }, - - isSelected: function() { - return Session.equals('currentCard', this.currentData()._id); - }, - - toggleMultiSelection: function(evt) { - evt.stopPropagation(); - evt.preventDefault(); - MultiSelection.toogle(this.currentData()._id); - }, - - clickOnMiniCard: function(evt) { - if (MultiSelection.isActive() || evt.shiftKey) { - evt.stopImmediatePropagation(); - evt.preventDefault(); - var methodName = evt.shiftKey ? 'toogleRange' : 'toogle'; - MultiSelection[methodName](this.currentData()._id); - - // If the card is already selected, we want to de-select it. - // XXX We should probably modify the minicard href attribute instead of - // overwriting the event in case the card is already selected. - } else if (Session.equals('currentCard', this.currentData()._id)) { - evt.stopImmediatePropagation(); - evt.preventDefault(); - Utils.goBoardId(Session.get('currentBoard')); - } - }, - - events: function() { - return [{ - submit: this.addCard, - 'click .js-toggle-multi-selection': this.toggleMultiSelection, - 'click .js-minicard': this.clickOnMiniCard, - 'click .open-minicard-composer': this.scrollToBottom - }]; } }).register('minicard'); |