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
Jérome Perrin
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/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