From 9c2a3213eb47956aaf116209d070ccac5dcddca6 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sat, 23 May 2015 19:57:47 +0200 Subject: Fix tab navigation in the form to add a new card --- client/components/lists/menu.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client/components/lists/menu.js') diff --git a/client/components/lists/menu.js b/client/components/lists/menu.js index 1e1eb53f..f2abd3bf 100644 --- a/client/components/lists/menu.js +++ b/client/components/lists/menu.js @@ -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() {}, -- cgit v1.2.3-1-g7c22