mirror of
https://github.com/wekan/wekan.git
synced 2026-01-04 00:28:49 +01:00
Fix Copy/Move cards. Thanks to thuanpq !
This commit is contained in:
parent
b592e8ad14
commit
9441fb29c9
2 changed files with 6 additions and 3 deletions
|
|
@ -153,11 +153,12 @@ template(name="boardsAndLists")
|
||||||
option(value="{{_id}}" selected) {{_ 'current'}}
|
option(value="{{_id}}" selected) {{_ 'current'}}
|
||||||
else
|
else
|
||||||
option(value="{{_id}}") {{title}}
|
option(value="{{_id}}") {{title}}
|
||||||
|
|
||||||
label {{_ 'lists'}}:
|
label {{_ 'lists'}}:
|
||||||
ul.pop-over-list
|
ul.pop-over-list
|
||||||
each aBoardLists
|
each aBoardLists
|
||||||
li
|
li
|
||||||
if($eq ../_id _id)
|
if $eq ../_id _id
|
||||||
a.disabled {{title}} ({{_ 'current'}})
|
a.disabled {{title}} ({{_ 'current'}})
|
||||||
else
|
else
|
||||||
a.js-select-list= title
|
a.js-select-list= title
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
const subManager = new SubsManager();
|
||||||
|
|
||||||
BlazeComponent.extendComponent({
|
BlazeComponent.extendComponent({
|
||||||
mixins() {
|
mixins() {
|
||||||
return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar];
|
return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar];
|
||||||
|
|
@ -231,13 +233,13 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
aBoardLists() {
|
aBoardLists() {
|
||||||
|
subManager.subscribe('board', this.selectedBoard.get());
|
||||||
const board = Boards.findOne(this.selectedBoard.get());
|
const board = Boards.findOne(this.selectedBoard.get());
|
||||||
return board.lists();
|
return board.lists();
|
||||||
},
|
},
|
||||||
|
|
||||||
events() {
|
events() {
|
||||||
return [{
|
return [{
|
||||||
'change .js-select-boards' (evt) {
|
'change .js-select-boards'(evt) {
|
||||||
this.selectedBoard.set($(evt.currentTarget).val());
|
this.selectedBoard.set($(evt.currentTarget).val());
|
||||||
},
|
},
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue