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
a58ae81c
Commit
a58ae81c
authored
May 08, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
展开收起命令不走undoredo
parent
c62537a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
expand.js
src/module/expand.js
+11
-3
No files found.
src/module/expand.js
View file @
a58ae81c
...
@@ -11,6 +11,8 @@ KityMinder.registerModule( "Expand", function () {
...
@@ -11,6 +11,8 @@ KityMinder.registerModule( "Expand", function () {
_buffer
.
shift
();
_buffer
.
shift
();
}
}
}
}
// var setOptionValue = function ( root, layer, sub ) {
// var setOptionValue = function ( root, layer, sub ) {
// var cur_layer = 1;
// var cur_layer = 1;
// var _buffer = root.getChildren();
// var _buffer = root.getChildren();
...
@@ -131,10 +133,13 @@ KityMinder.registerModule( "Expand", function () {
...
@@ -131,10 +133,13 @@ KityMinder.registerModule( "Expand", function () {
},
},
queryState
:
function
(
km
)
{
queryState
:
function
(
km
)
{
return
0
;
return
0
;
}
},
isNeedUndo
:
function
()
{
return
false
;
}
};
};
}
)()
);
}
)()
);
var
CollapseAllNodeCommand
=
kity
.
createClass
(
"
Expand
AllNodeCommand"
,
(
function
()
{
var
CollapseAllNodeCommand
=
kity
.
createClass
(
"
Collapse
AllNodeCommand"
,
(
function
()
{
return
{
return
{
base
:
Command
,
base
:
Command
,
execute
:
function
(
km
)
{
execute
:
function
(
km
)
{
...
@@ -145,7 +150,10 @@ KityMinder.registerModule( "Expand", function () {
...
@@ -145,7 +150,10 @@ KityMinder.registerModule( "Expand", function () {
},
},
queryState
:
function
(
km
)
{
queryState
:
function
(
km
)
{
return
0
;
return
0
;
}
},
isNeedUndo
:
function
()
{
return
false
;
}
};
};
}
)()
);
}
)()
);
return
{
return
{
...
...
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