diff options
Diffstat (limited to 'client/components/lists/main.js')
-rw-r--r-- | client/components/lists/main.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/client/components/lists/main.js b/client/components/lists/main.js index 243779b3..748b94d5 100644 --- a/client/components/lists/main.js +++ b/client/components/lists/main.js @@ -3,18 +3,9 @@ BlazeComponent.extendComponent({ return 'list'; }, + // Proxy openForm: function(options) { - options = options || {}; - options.position = options.position || 'top'; - - var listComponent = this.componentChildren('listBody')[0]; - var forms = listComponent.componentChildren('inlinedForm'); - - if (options.position === 'top') { - forms[0].open(); - } else { - forms[forms.length - 1].open(); - } + this.componentChildren('listBody')[0].openForm(options); }, // XXX The jQuery UI sortable plugin is far from ideal here. First we include |