mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 13:48:49 +01:00
Fix tab navigation in the form to add a new card
This commit is contained in:
parent
6ef9c7e95f
commit
9c2a3213eb
4 changed files with 59 additions and 41 deletions
|
|
@ -1,10 +1,8 @@
|
|||
Template.listActionPopup.events({
|
||||
'click .js-add-card': function() {
|
||||
// XXX We need a better API and architecture here. See
|
||||
// https://github.com/peerlibrary/meteor-blaze-components/issues/19
|
||||
var listDom = document.getElementById('js-list-' + this._id);
|
||||
var listInstance = Blaze.getView(listDom).templateInstance();
|
||||
listInstance.get('component').openForm();
|
||||
var listComponent = BlazeComponent.getComponentForElement(listDom);
|
||||
listComponent.openForm({ position: 'top' });
|
||||
Popup.close();
|
||||
},
|
||||
'click .js-list-subscribe': function() {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue