mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Card Details Popup possible on desktop view
- until now a new form in the popup closed the popup itself
This commit is contained in:
parent
48b2e3dd88
commit
8c3ce4bb73
4 changed files with 29 additions and 24 deletions
|
|
@ -94,16 +94,14 @@ BlazeComponent.extendComponent({
|
|||
title,
|
||||
sort: card.checklists().count(),
|
||||
});
|
||||
this.closeAllInlinedForms();
|
||||
setTimeout(() => {
|
||||
this.$('.add-checklist-item')
|
||||
.last()
|
||||
.click();
|
||||
}, 100);
|
||||
}
|
||||
textarea.value = '';
|
||||
textarea.focus();
|
||||
},
|
||||
|
||||
addChecklistItem(event) {
|
||||
event.preventDefault();
|
||||
const textarea = this.find('textarea.js-add-checklist-item');
|
||||
|
|
@ -190,6 +188,10 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
},
|
||||
|
||||
closeAllInlinedForms() {
|
||||
this.$('.js-close-inlined-form').click();
|
||||
},
|
||||
|
||||
events() {
|
||||
const events = {
|
||||
'click .toggle-delete-checklist-dialog'(event) {
|
||||
|
|
@ -214,6 +216,8 @@ BlazeComponent.extendComponent({
|
|||
'click .js-delete-checklist-item': this.deleteItem,
|
||||
'click .confirm-checklist-delete': this.deleteChecklist,
|
||||
'focus .js-add-checklist-item': this.focusChecklistItem,
|
||||
'click .add-checklist-item.js-open-inlined-form': this.closeAllInlinedForms,
|
||||
'click .add-checklist.js-open-inlined-form': this.closeAllInlinedForms,
|
||||
keydown: this.pressKey,
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue