mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 19:00:12 +01:00
Improve the multi-selection experience
New features: - select all filtered cards - assign or unassign a member to selected cards - archive selected cards This commit also fix the card sort indexes calculation when a multi- selection is drag-dropped.
This commit is contained in:
parent
a41e07b37e
commit
5478fc93db
12 changed files with 146 additions and 53 deletions
|
|
@ -27,10 +27,12 @@ BlazeComponent.extendComponent({
|
|||
var title = textarea.val();
|
||||
var position = Blaze.getData(evt.currentTarget).position;
|
||||
var sortIndex;
|
||||
var firstCard = this.find('.js-minicard:first');
|
||||
var lastCard = this.find('.js-minicard:last');
|
||||
if (position === 'top') {
|
||||
sortIndex = Utils.getSortIndex(null, this.find('.js-minicard:first'));
|
||||
sortIndex = Utils.calculateIndex(null, firstCard).base;
|
||||
} else if (position === 'bottom') {
|
||||
sortIndex = Utils.getSortIndex(this.find('.js-minicard:last'), null);
|
||||
sortIndex = Utils.calculateIndex(lastCard, null).base;
|
||||
}
|
||||
|
||||
if ($.trim(title)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue