Use a better API to retrieve the new card position

Fixes #347
This commit is contained in:
Maxime Quandalle 2015-10-13 19:56:04 +02:00
parent 3f7df340e1
commit 758be3356c

View file

@ -27,7 +27,7 @@ BlazeComponent.extendComponent({
const lastCardDom = this.find('.js-minicard:last');
const textarea = $(evt.currentTarget).find('textarea');
const title = textarea.val();
const position = Blaze.getData(evt.currentTarget).position;
const position = this.currentData().position;
let sortIndex;
if (position === 'top') {
sortIndex = Utils.calculateIndex(null, firstCardDom).base;