summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorErik Turk <erik.turk@ontera.ca>2018-02-08 13:04:43 -0500
committerErik Turk <erik.turk@ontera.ca>2018-02-08 13:04:43 -0500
commit69aeee536d03b7674ec79daa76c60c1cc7230fc7 (patch)
tree9a4fbc76237595433a2befa07ae57e811a5e0493 /client/components/cards
parent0a5af2b719fc2a559a92b2173681df697d3f9158 (diff)
parentab6a7c2dd6b5e3b81feed3c5201aa5f5461ce8e3 (diff)
downloadwekan-69aeee536d03b7674ec79daa76c60c1cc7230fc7.tar.gz
wekan-69aeee536d03b7674ec79daa76c60c1cc7230fc7.tar.bz2
wekan-69aeee536d03b7674ec79daa76c60c1cc7230fc7.zip
Merge branch 'devel' into copyMany
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/cardDetails.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index f117a264..9e08e248 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -173,13 +173,13 @@ Template.cardDetailsActionsPopup.events({
'click .js-copy-many-card': Popup.open('copyManyCard'),
'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();
@@ -216,7 +216,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();
},
});