BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
89bb889c
Commit
89bb889c
authored
Oct 11, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop directly parsing due_date with Date.parse, prefer parsing implicitly.
parent
052de060
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
due_date_select.js
app/assets/javascripts/due_date_select.js
+2
-2
No files found.
app/assets/javascripts/due_date_select.js
View file @
89bb889c
...
...
@@ -43,7 +43,7 @@
// Create the post date
value
=
$
(
"input[name='"
+
fieldName
+
"']"
).
val
();
if
(
value
!==
''
)
{
date
=
new
Date
(
value
.
replace
(
new
RegExp
(
'-'
,
'g'
),
','
)
);
date
=
new
Date
(
value
);
mediumDate
=
$
.
datepicker
.
formatDate
(
'M d, yy'
,
date
);
}
else
{
mediumDate
=
'No due date'
;
...
...
@@ -64,7 +64,7 @@
$selectbox
.
hide
();
}
$value
.
css
(
'display'
,
''
);
cssClass
=
Date
.
pars
e
(
mediumDate
)
?
'bold'
:
'no-value'
;
cssClass
=
new
Dat
e
(
mediumDate
)
?
'bold'
:
'no-value'
;
$valueContent
.
html
(
"<span class='"
+
cssClass
+
"'>"
+
mediumDate
+
"</span>"
);
$sidebarValue
.
html
(
mediumDate
);
if
(
value
!==
''
)
{
...
...
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