diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-11-21 09:07:56 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-11-21 09:07:56 +0200 |
commit | 9441fb29c9a1bdb6a635e13717fd14039f4a02f1 (patch) | |
tree | 9f4755edc5d4799242524c2f206b94739a93ab5a /client/components/cards | |
parent | b592e8ad14ab5ae8de7605e5870a9fe703d15874 (diff) | |
download | wekan-9441fb29c9a1bdb6a635e13717fd14039f4a02f1.tar.gz wekan-9441fb29c9a1bdb6a635e13717fd14039f4a02f1.tar.bz2 wekan-9441fb29c9a1bdb6a635e13717fd14039f4a02f1.zip |
Fix Copy/Move cards. Thanks to thuanpq !
Diffstat (limited to 'client/components/cards')
-rw-r--r-- | client/components/cards/cardDetails.jade | 3 | ||||
-rw-r--r-- | client/components/cards/cardDetails.js | 6 |
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()); }, }]; |