mirror of
https://github.com/wekan/wekan.git
synced 2025-12-26 12:18:49 +01:00
Fix: Allow to set empty card title, AssignedBy and RequestedBy.
Thanks to xet7 !
This commit is contained in:
parent
c29aa76d02
commit
25561946ed
1 changed files with 6 additions and 0 deletions
|
|
@ -291,6 +291,8 @@ BlazeComponent.extendComponent({
|
||||||
.trim();
|
.trim();
|
||||||
if (title) {
|
if (title) {
|
||||||
this.data().setTitle(title);
|
this.data().setTitle(title);
|
||||||
|
} else {
|
||||||
|
this.data().setTitle('');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'submit .js-card-details-assigner'(event) {
|
'submit .js-card-details-assigner'(event) {
|
||||||
|
|
@ -300,6 +302,8 @@ BlazeComponent.extendComponent({
|
||||||
.trim();
|
.trim();
|
||||||
if (assigner) {
|
if (assigner) {
|
||||||
this.data().setAssignedBy(assigner);
|
this.data().setAssignedBy(assigner);
|
||||||
|
} else {
|
||||||
|
this.data().setAssignedBy('');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'submit .js-card-details-requester'(event) {
|
'submit .js-card-details-requester'(event) {
|
||||||
|
|
@ -309,6 +313,8 @@ BlazeComponent.extendComponent({
|
||||||
.trim();
|
.trim();
|
||||||
if (requester) {
|
if (requester) {
|
||||||
this.data().setRequestedBy(requester);
|
this.data().setRequestedBy(requester);
|
||||||
|
} else {
|
||||||
|
this.data().setRequestedBy('');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'click .js-member': Popup.open('cardMember'),
|
'click .js-member': Popup.open('cardMember'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue