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
46ea862f
Commit
46ea862f
authored
9 years ago
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix not being able to set course passing grades above 80%.
parent
36e31e10
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cms/static/js/models/settings/course_grading_policy.js
+1
-1
cms/templates/settings_graders.html
+2
-1
No files found.
cms/static/js/models/settings/course_grading_policy.js
View file @
46ea862f
...
@@ -76,7 +76,7 @@ var CourseGradingPolicy = Backbone.Model.extend({
...
@@ -76,7 +76,7 @@ var CourseGradingPolicy = Backbone.Model.extend({
}
}
}
}
}
}
if
(
_
.
has
(
attrs
,
'minimum_grade_credit'
))
{
if
(
this
.
get
(
'is_credit_course'
)
&&
_
.
has
(
attrs
,
'minimum_grade_credit'
))
{
var
minimum_grade_cutoff
=
_
.
values
(
attrs
.
grade_cutoffs
).
pop
();
var
minimum_grade_cutoff
=
_
.
values
(
attrs
.
grade_cutoffs
).
pop
();
if
(
isNaN
(
attrs
.
minimum_grade_credit
)
||
attrs
.
minimum_grade_credit
===
null
||
attrs
.
minimum_grade_credit
<
minimum_grade_cutoff
)
{
if
(
isNaN
(
attrs
.
minimum_grade_credit
)
||
attrs
.
minimum_grade_credit
===
null
||
attrs
.
minimum_grade_credit
<
minimum_grade_cutoff
)
{
return
{
return
{
...
...
This diff is collapsed.
Click to expand it.
cms/templates/settings_graders.html
View file @
46ea862f
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
<
%!
import
json
from
contentstore
import
utils
from
contentstore
import
utils
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
%
>
...
@@ -22,7 +23,7 @@
...
@@ -22,7 +23,7 @@
</
%
block>
</
%
block>
<
%
block
name=
"requirejs"
>
<
%
block
name=
"requirejs"
>
require(["js/factories/settings_graders"], function(SettingsGradersFactory) {
require(["js/factories/settings_graders"], function(SettingsGradersFactory) {
SettingsGradersFactory(
${course_details|n}
, "${grading_url}");
SettingsGradersFactory(
_.extend(${course_details|n}, {is_credit_course: ${json.dumps(is_credit_course)}})
, "${grading_url}");
});
});
</
%
block>
</
%
block>
...
...
This diff is collapsed.
Click to expand it.
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