summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-11-21 09:07:56 +0200
committerLauri Ojansivu <x@xet7.org>2017-11-21 09:07:56 +0200
commit9441fb29c9a1bdb6a635e13717fd14039f4a02f1 (patch)
tree9f4755edc5d4799242524c2f206b94739a93ab5a
parentb592e8ad14ab5ae8de7605e5870a9fe703d15874 (diff)
downloadwekan-9441fb29c9a1bdb6a635e13717fd14039f4a02f1.tar.gz
wekan-9441fb29c9a1bdb6a635e13717fd14039f4a02f1.tar.bz2
wekan-9441fb29c9a1bdb6a635e13717fd14039f4a02f1.zip
Fix Copy/Move cards. Thanks to thuanpq !
-rw-r--r--client/components/cards/cardDetails.jade3
-rw-r--r--client/components/cards/cardDetails.js6
2 files changed, 6 insertions, 3 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index c2ee4e8d..859b80c3 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -153,11 +153,12 @@ template(name="boardsAndLists")
option(value="{{_id}}" selected) {{_ 'current'}}
else
option(value="{{_id}}") {{title}}
+
label {{_ 'lists'}}:
ul.pop-over-list
each aBoardLists
li
- if($eq ../_id _id)
+ if $eq ../_id _id
a.disabled {{title}} ({{_ 'current'}})
else
a.js-select-list= title
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index c358b306..f13404a5 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -1,3 +1,5 @@
+const subManager = new SubsManager();
+
BlazeComponent.extendComponent({
mixins() {
return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar];
@@ -231,13 +233,13 @@ BlazeComponent.extendComponent({
},
aBoardLists() {
+ subManager.subscribe('board', this.selectedBoard.get());
const board = Boards.findOne(this.selectedBoard.get());
return board.lists();
},
-
events() {
return [{
- 'change .js-select-boards' (evt) {
+ 'change .js-select-boards'(evt) {
this.selectedBoard.set($(evt.currentTarget).val());
},
}];