mirror of
https://github.com/wekan/wekan.git
synced 2026-02-15 04:28:07 +01:00
changing card color now closes the popup and doesn't refresh the whole boards page
This commit is contained in:
parent
83adaa3074
commit
45c2f1007b
1 changed files with 6 additions and 4 deletions
|
|
@ -846,13 +846,15 @@ BlazeComponent.extendComponent({
|
||||||
'click .js-palette-color'() {
|
'click .js-palette-color'() {
|
||||||
this.currentColor.set(this.currentData().color);
|
this.currentColor.set(this.currentData().color);
|
||||||
},
|
},
|
||||||
'click .js-submit'() {
|
'click .js-submit'(event) {
|
||||||
|
event.preventDefault();
|
||||||
this.currentCard.setColor(this.currentColor.get());
|
this.currentCard.setColor(this.currentColor.get());
|
||||||
Popup.close();
|
Popup.back();
|
||||||
},
|
},
|
||||||
'click .js-remove-color'() {
|
'click .js-remove-color'(event) {
|
||||||
|
event.preventDefault();
|
||||||
this.currentCard.setColor(null);
|
this.currentCard.setColor(null);
|
||||||
Popup.close();
|
Popup.back();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue