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:
Maxime Quandalle 2015-06-15 17:16:56 +02:00
parent a41e07b37e
commit 5478fc93db
12 changed files with 146 additions and 53 deletions

View file

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