mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
Copy card is now at the top too (same as move card)
This commit is contained in:
parent
ad5167de55
commit
dcff70c983
1 changed files with 4 additions and 2 deletions
|
@ -968,8 +968,10 @@ Template.copyCardPopup.events({
|
|||
const boardId = bSelect.options[bSelect.selectedIndex].value;
|
||||
const textarea = $('#copy-card-title');
|
||||
const title = textarea.val().trim();
|
||||
// insert new card to the bottom of new list
|
||||
card.sort = Lists.findOne(card.listId).cards().count();
|
||||
|
||||
// insert new card to the top of new list
|
||||
const minOrder = card.getMinSort(listId, swimlaneId);
|
||||
card.sort = minOrder - 1;
|
||||
|
||||
if (title) {
|
||||
card.title = title;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue