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
34441759
Commit
34441759
authored
Dec 13, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
settings - added in preventDefault() for all grading controls that needed it
parent
6b176591
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
cms/static/js/views/settings/main_settings_view.js
+7
-2
No files found.
cms/static/js/views/settings/main_settings_view.js
View file @
34441759
...
...
@@ -356,7 +356,8 @@ CMS.Views.Settings.Grading = CMS.Views.ValidatingView.extend({
return
this
;
},
addAssignmentType
:
function
()
{
addAssignmentType
:
function
(
e
)
{
e
.
preventDefault
();
this
.
model
.
get
(
'graders'
).
push
({});
},
fieldToSelectorMap
:
{
...
...
@@ -503,6 +504,7 @@ CMS.Views.Settings.Grading = CMS.Views.ValidatingView.extend({
},
addNewGrade
:
function
(
e
)
{
e
.
preventDefault
();
var
gradeLength
=
this
.
descendingCutoffs
.
length
;
// cutoffs doesn't include fail/f so this is only the passing grades
if
(
gradeLength
>
3
)
{
// TODO shouldn't we disable the button
...
...
@@ -541,6 +543,7 @@ CMS.Views.Settings.Grading = CMS.Views.ValidatingView.extend({
},
removeGrade
:
function
(
e
)
{
e
.
preventDefault
();
var
domElement
=
$
(
e
.
currentTarget
).
closest
(
'li'
);
var
index
=
domElement
.
index
();
// copy the boundary up to the next higher grade then remove
...
...
@@ -614,8 +617,9 @@ CMS.Views.Settings.GraderView = CMS.Views.ValidatingView.extend({
}
},
deleteModel
:
function
()
{
deleteModel
:
function
(
e
)
{
this
.
model
.
destroy
();
e
.
preventDefault
();
}
});
\ No newline at end of file
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