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
be565a30
Commit
be565a30
authored
May 07, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化了markers的目录结构
parent
972268bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
dialogs.css
dialogs/dialogs.css
+0
-6
iconpriority.png
dialogs/markers/images/iconpriority.png
+0
-0
iconprogress.png
dialogs/markers/images/iconprogress.png
+0
-0
markers.js
dialogs/markers/markers.js
+11
-4
No files found.
dialogs/dialogs.css
deleted
100644 → 0
View file @
972268bb
.priority
.icon
{
background
:
url(../dialogs/icons/iconpriority.png)
0
0
}
.progress
.icon
{
background
:
url(../dialogs/icons/iconprogress.png)
0
0
}
.icon.p2
{
background-position
:
-20px
0
}
.icon.p3
{
background-position
:
-40px
0
}
.icon.p4
{
background-position
:
-60px
0
}
.icon.p5
{
background-position
:
-80px
0
}
\ No newline at end of file
dialogs/markers/images/iconpriority.png
0 → 100644
View file @
be565a30
3.74 KB
dialogs/markers/images/iconprogress.png
0 → 100644
View file @
be565a30
3.74 KB
dialogs/markers/markers.js
View file @
be565a30
(
function
()
{
(
function
()
{
var
utils
=
KM
.
utils
;
KM
.
registerWidget
(
'markers'
,
{
KM
.
registerWidget
(
'markers'
,
{
tpl
:
"<ul class='icon-list priority'>"
+
tpl
:
"<style>"
+
"<%= container %> .priority .icon{background:url(dialogs/markers/images/iconpriority.png) 0 0}"
+
"<%= container %> .progress .icon{background:url(dialogs/markers/images/iconprogress.png) 0 0}"
+
"<%= container %> .icon.p2{background-position: -20px 0}"
+
"<%= container %> .icon.p3{background-position: -40px 0}"
+
"<%= container %> .icon.p4{background-position: -60px 0}"
+
"<%= 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='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>"
+
"<li value='2' type='priority'><span class='icon p2'></span><span><%= priority %>2</span></li>"
+
"<li value='3' type='priority'><span class='icon p3'></span><span><%= priority %>3</span></li>"
+
"<li value='3' type='priority'><span class='icon p3'></span><span><%= priority %>3</span></li>"
+
...
@@ -15,10 +22,10 @@
...
@@ -15,10 +22,10 @@
"<li value='4' type='progress'><span class='icon p4'></span><span><%= progress.threequartersdone %></span></li>"
+
"<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>"
+
"<li value='5' type='progress'><span class='icon p5'></span><span><%= progress.done %></span></li>"
+
"</ul>"
,
"</ul>"
,
initContent
:
function
(
km
)
{
initContent
:
function
(
km
,
$w
)
{
var
lang
=
km
.
getLang
(
'dialogs.markers'
);
var
lang
=
km
.
getLang
(
'dialogs.markers'
);
if
(
lang
)
{
if
(
lang
)
{
var
html
=
$
.
parseTmpl
(
this
.
tpl
,
lang
);
var
html
=
$
.
parseTmpl
(
this
.
tpl
,
utils
.
extend
({
'container'
:
$w
.
attr
(
'class'
)},
lang
)
);
}
}
this
.
root
().
html
(
html
);
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