Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
7ca267fd
Commit
7ca267fd
authored
Feb 12, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - debugging grading settings JS errors WIP
parent
22b959d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cms/static/js/models/settings/course_details.js
+1
-1
cms/static/js/models/settings/course_grading_policy.js
+2
-2
No files found.
cms/static/js/models/settings/course_details.js
View file @
7ca267fd
...
...
@@ -61,7 +61,7 @@ CMS.Models.Settings.CourseDetails = Backbone.Model.extend({
url
:
function
()
{
var
location
=
this
.
get
(
'location'
);
return
'/'
+
location
.
get
(
'org'
)
+
"/"
+
location
.
get
(
'course'
)
+
'/settings/'
+
location
.
get
(
'name'
)
+
'/section/details'
;
return
'/'
+
location
.
get
(
'org'
)
+
"/"
+
location
.
get
(
'course'
)
+
'/settings
-details
/'
+
location
.
get
(
'name'
)
+
'/section/details'
;
},
_videokey_illegal_chars
:
/
[^
a-zA-Z0-9_-
]
/g
,
...
...
cms/static/js/models/settings/course_grading_policy.js
View file @
7ca267fd
...
...
@@ -28,7 +28,7 @@ CMS.Models.Settings.CourseGradingPolicy = Backbone.Model.extend({
},
url
:
function
()
{
var
location
=
this
.
get
(
'course_location'
);
return
'/'
+
location
.
get
(
'org'
)
+
"/"
+
location
.
get
(
'course'
)
+
'/settings/'
+
location
.
get
(
'name'
)
+
'/section/grading'
;
return
'/'
+
location
.
get
(
'org'
)
+
"/"
+
location
.
get
(
'course'
)
+
'/settings
-grading
/'
+
location
.
get
(
'name'
)
+
'/section/grading'
;
},
gracePeriodToDate
:
function
()
{
var
newDate
=
new
Date
();
...
...
@@ -120,7 +120,7 @@ CMS.Models.Settings.CourseGraderCollection = Backbone.Collection.extend({
model
:
CMS
.
Models
.
Settings
.
CourseGrader
,
course_location
:
null
,
// must be set to a Location object
url
:
function
()
{
return
'/'
+
this
.
course_location
.
get
(
'org'
)
+
"/"
+
this
.
course_location
.
get
(
'course'
)
+
'/
grades
/'
+
this
.
course_location
.
get
(
'name'
)
+
'/'
;
return
'/'
+
this
.
course_location
.
get
(
'org'
)
+
"/"
+
this
.
course_location
.
get
(
'course'
)
+
'/
settings-grading
/'
+
this
.
course_location
.
get
(
'name'
)
+
'/'
;
},
sumWeights
:
function
()
{
return
this
.
reduce
(
function
(
subtotal
,
grader
)
{
return
subtotal
+
grader
.
get
(
'weight'
);
},
0
);
...
...
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