|
|
@ -607,6 +607,9 @@ define([
|
|
|
|
var $input = getInput().val(name).appendTo($item);
|
|
|
|
var $input = getInput().val(name).appendTo($item);
|
|
|
|
kanban.addForm(boardId, $item[0]);
|
|
|
|
kanban.addForm(boardId, $item[0]);
|
|
|
|
$input.focus();
|
|
|
|
$input.focus();
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
|
|
|
$input[0].scrollIntoView();
|
|
|
|
|
|
|
|
});
|
|
|
|
var save = function () {
|
|
|
|
var save = function () {
|
|
|
|
$item.remove();
|
|
|
|
$item.remove();
|
|
|
|
kanban.inEditMode = false;
|
|
|
|
kanban.inEditMode = false;
|
|
|
@ -624,7 +627,7 @@ define([
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|
save();
|
|
|
|
save();
|
|
|
|
if (!$input.val()) { return; }
|
|
|
|
if (!$input.val()) { return; }
|
|
|
|
$(el).closest('.kanban-board').find('.kanban-title-button.fa-plus').click();
|
|
|
|
$(el).closest('.kanban-board').find('footer .kanban-title-button').click();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (e.which === 27) {
|
|
|
|
if (e.which === 27) {
|
|
|
|