Fix wrong index when editing a kanban item

This commit is contained in:
yflory 2019-02-05 14:41:00 +01:00
parent aa5484ff21
commit f381ca8cab

View File

@ -140,7 +140,7 @@ define([
$(el).text(name); $(el).text(name);
// Save the value for the correct board // Save the value for the correct board
var board = $(el.parentNode.parentNode.parentNode).attr("data-id"); var board = $(el.parentNode.parentNode.parentNode).attr("data-id");
var pos = kanban.findElementPosition(el); var pos = kanban.findElementPosition(el.parentNode);
kanban.getBoardJSON(board).item[pos].title = name; kanban.getBoardJSON(board).item[pos].title = name;
kanban.onChange(); kanban.onChange();
// Unlock edit mode // Unlock edit mode