Fix tab navigation in the form to add a new card

This commit is contained in:
Maxime Quandalle 2015-05-23 19:57:47 +02:00
parent 6ef9c7e95f
commit 9c2a3213eb
4 changed files with 59 additions and 41 deletions

View file

@ -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() {},