Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
a99d25b1
Commit
a99d25b1
authored
Jun 10, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checks against date parsing instead of string
Removes template for html string that isn't needed
parent
b0cf8210
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/due_date_select.js.coffee
app/assets/javascripts/due_date_select.js.coffee
+1
-1
app/assets/javascripts/labels_select.js.coffee
app/assets/javascripts/labels_select.js.coffee
+2
-2
No files found.
app/assets/javascripts/due_date_select.js.coffee
View file @
a99d25b1
...
@@ -50,7 +50,7 @@ class @DueDateSelect
...
@@ -50,7 +50,7 @@ class @DueDateSelect
$selectbox
.
hide
()
$selectbox
.
hide
()
$value
.
css
(
'display'
,
''
)
$value
.
css
(
'display'
,
''
)
cssClass
=
if
mediumDate
is
"No due date"
then
'no-value'
else
'bold
'
cssClass
=
if
Date
.
parse
(
mediumDate
)
then
'bold'
else
'no-value
'
$valueContent
.
html
(
"<span class='
#{
cssClass
}
'>
#{
mediumDate
}
</span>"
)
$valueContent
.
html
(
"<span class='
#{
cssClass
}
'>
#{
mediumDate
}
</span>"
)
$sidebarValue
.
html
(
mediumDate
)
$sidebarValue
.
html
(
mediumDate
)
...
...
app/assets/javascripts/labels_select.js.coffee
View file @
a99d25b1
...
@@ -39,7 +39,7 @@ class @LabelsSelect
...
@@ -39,7 +39,7 @@ class @LabelsSelect
</a>
</a>
<% }); %>'
<% }); %>'
)
)
labelNoneHTMLTemplate
=
_
.
template
(
'<span class="no-value">None</span>'
)
labelNoneHTMLTemplate
=
'<span class="no-value">None</span>'
if
newLabelField
.
length
if
newLabelField
.
length
...
@@ -142,7 +142,7 @@ class @LabelsSelect
...
@@ -142,7 +142,7 @@ class @LabelsSelect
template
=
labelHTMLTemplate
(
data
)
template
=
labelHTMLTemplate
(
data
)
labelCount
=
data
.
labels
.
length
labelCount
=
data
.
labels
.
length
else
else
template
=
labelNoneHTMLTemplate
()
template
=
labelNoneHTMLTemplate
$value
$value
.
removeAttr
(
'style'
)
.
removeAttr
(
'style'
)
.
html
(
template
)
.
html
(
template
)
...
...
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