Commit 4dc690c8 authored by techird's avatar techird

Merge branch 'dev' of github.com:fex-team/kityminder into dev

parents bde47fd0 e966f0a3
......@@ -5,7 +5,7 @@
1. 添加保存时可修改文件名
2. 添加超链接功能
3. 选中节点时,按F2直接进入文字编辑状态
4. 添加展开收起节点
4. 加上"展开全部节点""收起全部节点"功能
5. 当前选中的高亮的节点可直接进行文字编辑
##问题修复
......
......@@ -22,6 +22,9 @@ var MoveToParentCommand = kity.createClass( 'MoveToParentCommand', {
node = nodes[ i ];
if ( node.getParent() ) {
minder.removeNode( [ node ] );
if ( !parent.isExpanded() && parent.getChildren().length > 0 && parent.getType() !== 'root' ) {
minder.expandNode( parent );
}
minder.appendChildNode( parent, node );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment