diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-03-20 19:30:44 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-03-20 19:30:44 +0200 |
commit | dce89bcfa84106ecb18ba65247d13003f9aac660 (patch) | |
tree | f4ccebb1fbd74981e00ca759c177ee57a5c9ee0e /client/components/cards/cardDetails.js | |
parent | e5370ce859a0d18f2d4a94216e9baf808062c617 (diff) | |
parent | 777d9ac35320cbfdd8d90136b176d4a3e69e74be (diff) | |
download | wekan-dce89bcfa84106ecb18ba65247d13003f9aac660.tar.gz wekan-dce89bcfa84106ecb18ba65247d13003f9aac660.tar.bz2 wekan-dce89bcfa84106ecb18ba65247d13003f9aac660.zip |
Merge branch 'edge' of https://github.com/andresmanelli/wekan into andresmanelli-edge
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r-- | client/components/cards/cardDetails.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index d27fe732..79e9e311 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -412,11 +412,13 @@ Template.moveCardPopup.events({ // XXX We should *not* get the currentCard from the global state, but // instead from a “component” state. const card = Cards.findOne(Session.get('currentCard')); + const bSelect = $('.js-select-boards')[0]; + const boardId = bSelect.options[bSelect.selectedIndex].value; const lSelect = $('.js-select-lists')[0]; - const newListId = lSelect.options[lSelect.selectedIndex].value; + const listId = lSelect.options[lSelect.selectedIndex].value; const slSelect = $('.js-select-swimlanes')[0]; - card.swimlaneId = slSelect.options[slSelect.selectedIndex].value; - card.move(card.swimlaneId, newListId, 0); + const swimlaneId = slSelect.options[slSelect.selectedIndex].value; + card.move(boardId, swimlaneId, listId, 0); Popup.close(); }, }); |