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
5a0070ee
Commit
5a0070ee
authored
Aug 01, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that all validation errors are marked.
parent
f1f91671
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
10 deletions
+16
-10
openassessment/xblock/static/js/openassessment-studio.min.js
+0
-0
openassessment/xblock/static/js/src/studio/oa_container_item.js
+1
-1
openassessment/xblock/static/js/src/studio/oa_edit.js
+3
-1
openassessment/xblock/static/js/src/studio/oa_edit_assessment.js
+6
-2
openassessment/xblock/static/js/src/studio/oa_edit_rubric.js
+1
-1
openassessment/xblock/static/js/src/studio/oa_edit_settings.js
+5
-5
No files found.
openassessment/xblock/static/js/openassessment-studio.min.js
View file @
5a0070ee
This diff is collapsed.
Click to expand it.
openassessment/xblock/static/js/src/studio/oa_container_item.js
View file @
5a0070ee
...
...
@@ -393,7 +393,7 @@ OpenAssessment.RubricCriterion.prototype = {
validate
:
function
()
{
var
isValid
=
true
;
$
.
each
(
this
.
optionContainer
.
getAllItems
(),
function
()
{
isValid
=
(
isValid
&&
this
.
validate
()
);
isValid
=
(
this
.
validate
()
&&
isValid
);
});
return
isValid
;
},
...
...
openassessment/xblock/static/js/src/studio/oa_edit.js
View file @
5a0070ee
...
...
@@ -232,7 +232,9 @@ OpenAssessment.StudioView.prototype = {
**/
validate
:
function
()
{
return
this
.
settingsView
.
validate
()
&&
this
.
rubricView
.
validate
();
var
settingsValid
=
this
.
settingsView
.
validate
();
var
rubricValid
=
this
.
rubricView
.
validate
();
return
settingsValid
&&
rubricValid
;
},
/**
...
...
openassessment/xblock/static/js/src/studio/oa_edit_assessment.js
View file @
5a0070ee
...
...
@@ -147,7 +147,9 @@ OpenAssessment.EditPeerAssessmentView.prototype = {
**/
validate
:
function
()
{
return
this
.
startDatetimeControl
.
validate
()
&&
this
.
dueDatetimeControl
.
validate
();
var
startValid
=
this
.
startDatetimeControl
.
validate
();
var
dueValid
=
this
.
dueDatetimeControl
.
validate
();
return
startValid
&&
dueValid
;
},
/**
...
...
@@ -297,7 +299,9 @@ OpenAssessment.EditSelfAssessmentView.prototype = {
**/
validate
:
function
()
{
return
this
.
startDatetimeControl
.
validate
()
&&
this
.
dueDatetimeControl
.
validate
();
var
startValid
=
this
.
startDatetimeControl
.
validate
();
var
dueValid
=
this
.
dueDatetimeControl
.
validate
();
return
startValid
&&
dueValid
;
},
/**
...
...
openassessment/xblock/static/js/src/studio/oa_edit_rubric.js
View file @
5a0070ee
...
...
@@ -202,7 +202,7 @@ OpenAssessment.EditRubricView.prototype = {
var
isValid
=
true
;
$
.
each
(
this
.
getAllCriteria
(),
function
()
{
isValid
=
(
isValid
&&
this
.
validate
()
);
isValid
=
(
this
.
validate
()
&&
isValid
);
});
return
isValid
;
...
...
openassessment/xblock/static/js/src/studio/oa_edit_settings.js
View file @
5a0070ee
...
...
@@ -208,14 +208,14 @@ OpenAssessment.EditSettingsView.prototype = {
**/
validate
:
function
()
{
// Validate the start and due datetime controls
var
isValid
=
(
this
.
startDatetimeControl
.
validate
()
&&
this
.
dueDatetimeControl
.
validate
()
);
var
isValid
=
true
;
isValid
=
(
this
.
startDatetimeControl
.
validate
()
&&
isValid
);
isValid
=
(
this
.
dueDatetimeControl
.
validate
()
&&
isValid
);
// Validate each of the assessment views
$
.
each
(
this
.
assessmentViews
,
function
()
{
isValid
=
(
isValid
&&
this
.
validate
()
);
isValid
=
(
this
.
validate
()
&&
isValid
);
});
return
isValid
;
...
...
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