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
41b054f6
Commit
41b054f6
authored
Nov 25, 2014
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding more readable comments to catch block.
TNL-58
parent
c6816920
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
openassessment/xblock/static/js/src/studio/oa_edit_fields.js
+2
-1
No files found.
openassessment/xblock/static/js/src/studio/oa_edit_fields.js
View file @
41b054f6
...
@@ -237,7 +237,8 @@ OpenAssessment.DatetimeControl.prototype = {
...
@@ -237,7 +237,8 @@ OpenAssessment.DatetimeControl.prototype = {
var
parsedDate
=
$
.
datepicker
.
parseDate
(
$
.
datepicker
.
ISO_8601
,
dateString
);
var
parsedDate
=
$
.
datepicker
.
parseDate
(
$
.
datepicker
.
ISO_8601
,
dateString
);
isDateValid
=
parsedDate
instanceof
Date
;
isDateValid
=
parsedDate
instanceof
Date
;
}
catch
(
err
)
{
}
catch
(
err
)
{
// parseDate throws error if date is not in expected format.
// parseDate function throws error if date is not in expected format.
// isDateValid flag would remain false.
}
}
if
(
!
isDateValid
)
{
if
(
!
isDateValid
)
{
$
(
this
.
datePicker
,
this
.
element
).
addClass
(
"openassessment_highlighted_field"
);
$
(
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