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

@ -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