summaryrefslogtreecommitdiffstats
path: root/client/components/lists/menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/lists/menu.js')
-rw-r--r--client/components/lists/menu.js6
1 files changed, 2 insertions, 4 deletions
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() {},