Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
c6816920
Commit
c6816920
authored
Nov 25, 2014
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment refactoring.
TNL-58
parent
136e68f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
openassessment/xblock/static/js/src/studio/oa_edit_fields.js
+2
-4
No files found.
openassessment/xblock/static/js/src/studio/oa_edit_fields.js
View file @
c6816920
...
...
@@ -233,13 +233,11 @@ OpenAssessment.DatetimeControl.prototype = {
//date validation
var
isDateValid
=
false
;
//try: to catch the error thrown by parseDate if date is not in expected format.
try
{
var
parsedDate
=
$
.
datepicker
.
parseDate
(
$
.
datepicker
.
ISO_8601
,
dateString
);
isDateValid
=
parsedDate
instanceof
Date
;
}
catch
(
err
)
{
// do nothing.
}
catch
(
err
)
{
// parseDate throws error if date is not in expected format.
}
if
(
!
isDateValid
)
{
$
(
this
.
datePicker
,
this
.
element
).
addClass
(
"openassessment_highlighted_field"
);
...
...
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