summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-10-13 19:56:04 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-10-13 19:56:04 +0200
commit758be3356cc3fb05de0a29787059b6b34aac08a2 (patch)
tree86a4f951f03043004ec83ed69a7bd7102789ca60 /client/components/lists
parent3f7df340e1dea4a48bd17c189ccf61e53c47330a (diff)
downloadwekan-758be3356cc3fb05de0a29787059b6b34aac08a2.tar.gz
wekan-758be3356cc3fb05de0a29787059b6b34aac08a2.tar.bz2
wekan-758be3356cc3fb05de0a29787059b6b34aac08a2.zip
Use a better API to retrieve the new card position
Fixes #347
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listBody.js2
1 files changed, 1 insertions, 1 deletions
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;