diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-02-07 15:37:53 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-02-07 15:37:53 +0200 |
commit | c5a707a7f543001c1d53a5c0e92840d059475e87 (patch) | |
tree | 56844e83f659dbbc8f3503a37e62147b18bb3428 /client/components/cards | |
parent | b2d3138220d37e8e21e22e2437b888b490341eb9 (diff) | |
parent | b3d31588634b3ff01b113579a7a715f1f9f2f234 (diff) | |
download | wekan-c5a707a7f543001c1d53a5c0e92840d059475e87.tar.gz wekan-c5a707a7f543001c1d53a5c0e92840d059475e87.tar.bz2 wekan-c5a707a7f543001c1d53a5c0e92840d059475e87.zip |
Merge branch 'devel'
Diffstat (limited to 'client/components/cards')
-rw-r--r-- | client/components/cards/cardDetails.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 94a938f0..d70167ce 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -172,13 +172,13 @@ Template.cardDetailsActionsPopup.events({ 'click .js-copy-card': Popup.open('copyCard'), 'click .js-move-card-to-top' (evt) { evt.preventDefault(); - const minOrder = _.min(this.list().cards().map((c) => c.sort)); - this.move(this.listId, minOrder - 1); + const minOrder = _.min(this.list().cards(this.swimlaneId).map((c) => c.sort)); + this.move(this.swimlaneId, this.listId, minOrder - 1); }, 'click .js-move-card-to-bottom' (evt) { evt.preventDefault(); - const maxOrder = _.max(this.list().cards().map((c) => c.sort)); - this.move(this.listId, maxOrder + 1); + const maxOrder = _.max(this.list().cards(this.swimlaneId).map((c) => c.sort)); + this.move(this.swimlaneId, this.listId, maxOrder + 1); }, 'click .js-archive' (evt) { evt.preventDefault(); @@ -215,7 +215,7 @@ Template.moveCardPopup.events({ // instead from a “component” state. const card = Cards.findOne(Session.get('currentCard')); const newListId = this._id; - card.move(newListId); + card.move(card.swimlaneId, newListId, 0); Popup.close(); }, }); |