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
6f2a9ca6
Commit
6f2a9ca6
authored
Mar 19, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
e2e8f655
de02a11b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
37 deletions
+1
-37
help.js
dialogs/help/help.js
+1
-37
No files found.
dialogs/help/help.js
View file @
6f2a9ca6
...
...
@@ -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
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