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
e5e1a7f4
Commit
e5e1a7f4
authored
May 04, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added dalog
parent
57ba2ba0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
preference.js
dialogs/preference/preference.js
+19
-0
kityminder.config.js
kityminder.config.js
+1
-1
dialog.js
src/adapter/dialog.js
+1
-1
buttonicon.css
themes/default/css/buttonicon.css
+3
-0
No files found.
dialogs/preference/preference.js
0 → 100644
View file @
e5e1a7f4
(
function
()
{
var
preferenceContent
=
'<div class="help-content" style="padding:20px;width:360px;">'
;
preferenceContent
+=
'<h2>设置</h2>'
preferenceContent
+=
'</div>'
;
KM
.
registerWidget
(
'preference'
,
{
tpl
:
preferenceContent
,
initContent
:
function
(
km
)
{
var
lang
=
km
.
getLang
(
'dialogs.help'
),
html
;
if
(
lang
)
{
html
=
$
.
parseTmpl
(
this
.
tpl
,
lang
);
}
this
.
root
().
html
(
html
);
},
initEvent
:
function
(
km
,
$w
)
{},
width
:
400
}
);
}
)();
\ No newline at end of file
kityminder.config.js
View file @
e5e1a7f4
...
...
@@ -63,7 +63,7 @@
'KITYMINDER_HOME_URL'
:
getKMBasePath
(),
//定义工具栏
toolbars
:
[
'hand zoom-in zoom-out | undo redo | bold italic | fontfamily fontsize forecolor | saveto | markers | node | help'
'hand zoom-in zoom-out | undo redo | bold italic | fontfamily fontsize forecolor | saveto | markers | node |
preference |
help'
]
//只读模式,默认是false
//readOnly: true
...
...
src/adapter/dialog.js
View file @
e5e1a7f4
KM
.
registerToolbarUI
(
'markers help'
,
function
(
name
)
{
KM
.
registerToolbarUI
(
'markers help
preference
'
,
function
(
name
)
{
var
me
=
this
,
currentRange
,
$dialog
,
...
...
themes/default/css/buttonicon.css
View file @
e5e1a7f4
...
...
@@ -31,4 +31,7 @@
}
.kmui-btn-toolbar
.kmui-btn
.kmui-icon-help
{
background
:
url(../images/help.png)
no-repeat
2px
2px
;
}
.kmui-btn-toolbar
.kmui-btn
.kmui-icon-preference
{
background
:
url(../images/setting.png)
no-repeat
2px
2px
;
}
\ No newline at end of file
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