Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
d2a737a2
Commit
d2a737a2
authored
Jan 23, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug
parent
bb8b03c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
keyboard.js
src/module/keyboard.js
+1
-1
layout.js
src/module/layout.js
+2
-1
No files found.
src/module/keyboard.js
View file @
d2a737a2
...
@@ -98,5 +98,5 @@ KityMinder.registerModule( "KeyboardModule", function () {
...
@@ -98,5 +98,5 @@ KityMinder.registerModule( "KeyboardModule", function () {
}
}
}
}
}
}
;
}
);
}
);
\ No newline at end of file
src/module/layout.js
View file @
d2a737a2
...
@@ -34,7 +34,7 @@ KityMinder.registerModule( "LayoutModule", function () {
...
@@ -34,7 +34,7 @@ KityMinder.registerModule( "LayoutModule", function () {
},
},
removeNode
:
function
(
nodes
)
{
removeNode
:
function
(
nodes
)
{
var
curStyle
=
this
.
getCurrentStyle
();
var
curStyle
=
this
.
getCurrentStyle
();
this
.
getLayoutStyle
(
curStyle
).
appendChild
Node
.
call
(
this
,
nodes
);
this
.
getLayoutStyle
(
curStyle
).
remove
Node
.
call
(
this
,
nodes
);
},
},
updateLayout
:
function
(
node
)
{
updateLayout
:
function
(
node
)
{
var
curStyle
=
this
.
getCurrentStyle
();
var
curStyle
=
this
.
getCurrentStyle
();
...
@@ -110,6 +110,7 @@ KityMinder.registerModule( "LayoutModule", function () {
...
@@ -110,6 +110,7 @@ KityMinder.registerModule( "LayoutModule", function () {
base
:
Command
,
base
:
Command
,
execute
:
function
(
km
)
{
execute
:
function
(
km
)
{
var
selectedNodes
=
km
.
getSelectedNodes
();
var
selectedNodes
=
km
.
getSelectedNodes
();
console
.
log
(
selectedNodes
);
km
.
removeNode
(
selectedNodes
);
km
.
removeNode
(
selectedNodes
);
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment