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
ca15319e
Commit
ca15319e
authored
Feb 05, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by zhanyi
parent
cf4ee9a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
configure.js
configure.js
+5
-0
minder.js
src/core/minder.js
+1
-5
minder.module.js
src/core/minder.module.js
+3
-1
No files found.
configure.js
View file @
ca15319e
window
.
KITYMINDER_CONFIG
=
{
window
.
KITYMINDER_CONFIG
=
{
//设置主题
//layoutstyle : 'default'
//回退相关选项
//maxUndoCount:20 //最大可回退的次数,默认20
};
};
\ No newline at end of file
src/core/minder.js
View file @
ca15319e
...
@@ -9,13 +9,9 @@
...
@@ -9,13 +9,9 @@
* @description KityMinder 使用类
* @description KityMinder 使用类
*/
*/
var
MinderDefaultOptions
=
{
"layoutstyle"
:
"default"
};
var
Minder
=
KityMinder
.
Minder
=
kity
.
createClass
(
"KityMinder"
,
{
var
Minder
=
KityMinder
.
Minder
=
kity
.
createClass
(
"KityMinder"
,
{
constructor
:
function
(
options
)
{
constructor
:
function
(
options
)
{
this
.
_options
=
Utils
.
extend
(
window
.
KITYMINDER_CONFIG
||
{},
MinderDefaultOptions
,
options
);
this
.
_options
=
Utils
.
extend
(
window
.
KITYMINDER_CONFIG
||
{},
options
);
this
.
_initEvents
();
this
.
_initEvents
();
this
.
_initMinder
();
this
.
_initMinder
();
this
.
_initSelection
();
this
.
_initSelection
();
...
...
src/core/minder.module.js
View file @
ca15319e
...
@@ -21,7 +21,6 @@ kity.extendClass( Minder, {
...
@@ -21,7 +21,6 @@ kity.extendClass( Minder, {
this
.
_modules
[
name
]
=
moduleDeals
;
this
.
_modules
[
name
]
=
moduleDeals
;
if
(
moduleDeals
.
init
)
{
if
(
moduleDeals
.
init
)
{
this
.
setDefaultOptions
(
moduleDeals
.
defaultOptions
||
{});
moduleDeals
.
init
.
call
(
me
,
this
.
_options
);
moduleDeals
.
init
.
call
(
me
,
this
.
_options
);
}
}
...
@@ -39,6 +38,9 @@ kity.extendClass( Minder, {
...
@@ -39,6 +38,9 @@ kity.extendClass( Minder, {
}
}
}
}
if
(
moduleDeals
.
defaultOptions
){
this
.
setDefaultOptions
(
moduleDeals
.
defaultOptions
);
}
//添加模块的快捷键
//添加模块的快捷键
if
(
moduleDeals
.
addShortcutKeys
){
if
(
moduleDeals
.
addShortcutKeys
){
this
.
addShortcutKeys
(
moduleDeals
.
addShortcutKeys
)
this
.
addShortcutKeys
(
moduleDeals
.
addShortcutKeys
)
...
...
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