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
b74c7499
Commit
b74c7499
authored
May 09, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
038b0776
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
markers.js
dialogs/markers/markers.js
+12
-10
No files found.
dialogs/markers/markers.js
View file @
b74c7499
(
function
()
{
KM
.
registerWidget
(
'markers'
,
{
tpl
:
"<style>"
+
".kmui-dialog-<%= container %> .priority .icon{background:url(dialogs/markers/images/iconpriority.png) 0 0}"
+
".kmui-dialog-<%= container %> .progress .icon{background:url(dialogs/markers/images/iconprogress.png) 0 0}"
+
".kmui-dialog-<%= container %> .icon.p2{background-position: -20px 0}"
+
".kmui-dialog-<%= container %> .icon.p3{background-position: -40px 0}"
+
".kmui-dialog-<%= container %> .icon.p4{background-position: -60px 0}"
+
".kmui-dialog-<%= container %> .icon.p5{background-position: -80px 0}"
+
"</style>"
+
tpl
:
"<style>"
+
".kmui-dialog-<%= container %> .priority .icon{background:url(dialogs/markers/images/iconpriority.png) 0 0}"
+
".kmui-dialog-<%= container %> .progress .icon{background:url(dialogs/markers/images/iconprogress.png) 0 0}"
+
".kmui-dialog-<%= container %> .icon.p2{background-position: -20px 0}"
+
".kmui-dialog-<%= container %> .icon.p3{background-position: -40px 0}"
+
".kmui-dialog-<%= container %> .icon.p4{background-position: -60px 0}"
+
".kmui-dialog-<%= container %> .icon.p5{background-position: -80px 0}"
+
"</style>"
+
"<ul class='icon-list priority'>"
+
"<li value='1' type='priority'><span class='icon p1'></span><span><%= priority %>1</span></li>"
+
"<li value='2' type='priority'><span class='icon p2'></span><span><%= priority %>2</span></li>"
+
...
...
@@ -22,10 +22,12 @@
"<li value='4' type='progress'><span class='icon p4'></span><span><%= progress.threequartersdone %></span></li>"
+
"<li value='5' type='progress'><span class='icon p5'></span><span><%= progress.done %></span></li>"
+
"</ul>"
,
initContent
:
function
(
km
,
$w
)
{
initContent
:
function
(
km
,
$w
)
{
var
lang
=
km
.
getLang
(
'dialogs.markers'
);
if
(
lang
)
{
var
html
=
$
.
parseTmpl
(
this
.
tpl
,
utils
.
extend
({
'container'
:
'markers'
},
lang
)
);
var
html
=
$
.
parseTmpl
(
this
.
tpl
,
utils
.
extend
(
{
'container'
:
'markers'
},
lang
)
);
}
this
.
root
().
html
(
html
);
},
...
...
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