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
70fc3260
Commit
70fc3260
authored
Feb 18, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added lang
parent
094eb0fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
zh-cn.js
lang/zh-cn/zh-cn.js
+2
-0
minder.js
src/core/minder.js
+1
-1
minder.module.js
src/core/minder.module.js
+4
-4
keyboard.js
src/module/keyboard.js
+2
-2
No files found.
lang/zh-cn/zh-cn.js
View file @
70fc3260
KityMinder
.
LANG
[
'zh-cn'
]
=
{
'maintopic'
:
'中心主题'
,
'topic'
:
'分支主题'
,
'tooltips'
:
{
'undo'
:
'撤销'
,
'redo'
:
'重做'
,
...
...
src/core/minder.js
View file @
70fc3260
...
...
@@ -39,7 +39,7 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
this
.
_addRenderContainer
();
this
.
_root
=
new
MinderNode
(
"Main Topic"
);
this
.
_root
=
new
MinderNode
(
this
.
getLang
().
maintopic
);
this
.
_root
.
setType
(
"root"
);
if
(
this
.
_options
.
renderTo
)
{
this
.
renderTo
(
this
.
_options
.
renderTo
);
...
...
src/core/minder.module.js
View file @
70fc3260
...
...
@@ -38,12 +38,12 @@ kity.extendClass( Minder, {
}
}
if
(
moduleDeals
.
defaultOptions
)
{
this
.
setDefaultOptions
(
moduleDeals
.
defaultOptions
);
if
(
moduleDeals
.
defaultOptions
)
{
this
.
setDefaultOptions
(
moduleDeals
.
defaultOptions
);
}
//添加模块的快捷键
if
(
moduleDeals
.
addShortcutKeys
)
{
this
.
addShortcutKeys
(
moduleDeals
.
addShortcutKeys
)
if
(
moduleDeals
.
addShortcutKeys
)
{
this
.
addShortcutKeys
(
moduleDeals
.
addShortcutKeys
)
}
}
...
...
src/module/keyboard.js
View file @
70fc3260
...
...
@@ -87,11 +87,11 @@ KityMinder.registerModule( "KeyboardModule", function () {
}
switch
(
e
.
originEvent
.
keyCode
)
{
case
keys
.
Enter
:
this
.
execCommand
(
'appendSiblingNode'
,
new
MinderNode
(
'Topic'
)
);
this
.
execCommand
(
'appendSiblingNode'
,
new
MinderNode
(
this
.
getLang
().
topic
)
);
e
.
preventDefault
();
break
;
case
keys
.
Tab
:
this
.
execCommand
(
'appendChildNode'
,
new
MinderNode
(
'Topic'
)
);
this
.
execCommand
(
'appendChildNode'
,
new
MinderNode
(
this
.
getLang
().
topic
)
);
e
.
preventDefault
();
break
;
case
keys
.
Backspace
:
...
...
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