summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Turk <erik.turk@ontera.ca>2018-02-08 08:13:31 -0500
committerErik Turk <erik.turk@ontera.ca>2018-02-08 08:13:31 -0500
commit257ed56db3eefda225a1d2a20ce60458393a4cce (patch)
tree571604d3eb5e6eeb38d9c8056de6c0a2a472bcb4
parent842c8b83d2b5cb32c54d773f343ac6e82c59ce55 (diff)
downloadwekan-257ed56db3eefda225a1d2a20ce60458393a4cce.tar.gz
wekan-257ed56db3eefda225a1d2a20ce60458393a4cce.tar.bz2
wekan-257ed56db3eefda225a1d2a20ce60458393a4cce.zip
finish adding[4~ copyMany
-rw-r--r--client/components/cards/cardDetails.jade3
-rw-r--r--client/components/cards/cardDetails.js16
2 files changed, 13 insertions, 6 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index a41c01ce..27de1a6e 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -166,9 +166,6 @@ template(name="copyManyCardPopup")
+boardsAndLists
template(name="boardsAndLists")
-
-
-template(name="boardsAndLists")
select.js-select-boards
each boards
if $eq _id currentBoard._id
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index e73632cb..e75e7c02 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -313,10 +313,20 @@ Template.copyManyCardPopup.events({
if (titleEntry) {
var title, titleList;
+ console.log(titleEntry);
+ console.log(titleEntry.length);
+ var titleList = JSON.parse(titleEntry);
+ console.log(titleList);
+ console.log(titleList[0]);
+ console.log(titleList[0].title);
+
- for (let title of titleList.split(",")) {
+ for (var i = 0; i < titleList.length; i++){
+ var obj = titleList[i];
+ console.log(obj.title);
- card.title = title;
+ card.title = obj.title;
+ card.description = obj.description;
card.coverId = '';
const _id = Cards.insert(card);
// In case the filter is active we need to add the newly inserted card in
@@ -344,9 +354,9 @@ Template.copyManyCardPopup.events({
comment._id = null;
CardComments.insert(comment);
});
+ }
Popup.close();
}
- }
},
});