mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix tab navigation in the form to add a new card
This commit is contained in:
parent
6ef9c7e95f
commit
9c2a3213eb
4 changed files with 59 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue