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
de02a11b
Commit
de02a11b
authored
Mar 19, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复帮助出错和出现横向滚动条的问题
parent
599b4701
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
37 deletions
+2
-37
help.js
dialogs/help/help.js
+1
-37
dialog.css
themes/default/css/dialog.css
+1
-0
No files found.
dialogs/help/help.js
View file @
de02a11b
...
...
@@ -40,11 +40,10 @@
helpContent
+=
'</div>'
;
var
utils
=
KM
.
utils
;
KM
.
registerWidget
(
'help'
,
{
tpl
:
helpContent
,
initContent
:
function
(
km
)
{
var
lang
=
km
.
getLang
(
'dialogs.
markers
'
),
var
lang
=
km
.
getLang
(
'dialogs.
help
'
),
html
;
if
(
lang
)
{
html
=
$
.
parseTmpl
(
this
.
tpl
,
lang
);
...
...
@@ -52,43 +51,8 @@
this
.
root
().
html
(
html
);
},
initEvent
:
function
(
km
,
$w
)
{
$w
.
on
(
"click"
,
"li"
,
function
()
{
var
$this
=
$
(
this
);
$this
.
siblings
().
removeClass
(
"active"
);
$this
.
toggleClass
(
"active"
);
var
val
=
$this
.
val
();
if
(
!
$this
.
hasClass
(
"active"
)
)
{
val
=
null
;
}
var
type
=
$this
.
attr
(
"type"
);
km
.
execCommand
(
type
,
val
);
}
);
km
.
on
(
'interactchange'
,
function
(
e
)
{
var
valPri
=
this
.
queryCommandValue
(
"priority"
);
var
valPro
=
this
.
queryCommandValue
(
"progress"
);
$w
.
find
(
"li[type='priority']"
).
removeClass
(
"active"
);
$w
.
find
(
"li[type='priority'][value='"
+
valPri
+
"']"
).
addClass
(
"active"
);
$w
.
find
(
"li[type='progress']"
).
removeClass
(
"active"
);
$w
.
find
(
"li[type='progress'][value='"
+
valPro
+
"']"
).
addClass
(
"active"
);
}
);
},
buttons
:
{
'ok'
:
{
exec
:
function
(
km
,
$w
)
{
var
href
=
$
(
'#kmui-link-Jhref'
).
val
().
replace
(
/^
\s
+|
\s
+$/g
,
''
);
if
(
href
)
{
km
.
execCommand
(
'link'
,
{
'href'
:
href
,
'target'
:
$
(
"#kmui-link-Jtarget:checked"
).
length
?
"_blank"
:
'_self'
,
'title'
:
$
(
"#kmui-link-Jtitle"
).
val
().
replace
(
/^
\s
+|
\s
+$/g
,
''
),
'_href'
:
href
}
);
}
}
},
'cancel'
:
{}
},
width
:
400
}
);
}
)();
\ No newline at end of file
themes/default/css/dialog.css
View file @
de02a11b
...
...
@@ -37,6 +37,7 @@
max-height
:
400px
;
font-size
:
12px
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
}
.kmui-modal-footer
{
float
:
right
;
...
...
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