From 758be3356cc3fb05de0a29787059b6b34aac08a2 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 13 Oct 2015 19:56:04 +0200 Subject: Use a better API to retrieve the new card position Fixes #347 --- client/components/lists/listBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 2e00cb4f..0b69b50a 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -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; -- cgit v1.2.3-1-g7c22