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
be3d8cbb
Commit
be3d8cbb
authored
Jan 14, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix small issue with graded callback
parent
78a94a4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lms/static/coffee/src/staff_grading/staff_grading.coffee
+7
-2
No files found.
lms/static/coffee/src/staff_grading/staff_grading.coffee
View file @
be3d8cbb
...
...
@@ -219,19 +219,24 @@ class StaffGrading
setup_score_selection
:
=>
# first, get rid of all the old inputs, if any.
@
grade_selection_container
.
html
(
'Choose score: '
)
@
grade_selection_container
.
html
(
"""
<h3>Overall Score</h3>
<p>Choose an overall score for this submission.</p>
"""
)
# Now create new labels and inputs for each possible score.
for
score
in
[
0
..
@
max_score
]
id
=
'score-'
+
score
label
=
"""<label for="
#{
id
}
">
#{
score
}
</label>"""
input
=
"""
<input type="radio" name="grade-selection" id="
#{
id
}
" value="
#{
score
}
"/>
<input type="radio"
class="grade-selection"
name="grade-selection" id="
#{
id
}
" value="
#{
score
}
"/>
"""
# " fix broken parsing in emacs
@
grade_selection_container
.
append
(
input
+
label
)
$
(
'.grade-selection'
).
click
=>
@
graded_callback
()
@
score_selection_container
.
html
(
@
rubric
)
$
(
'.score-selection'
).
click
=>
@
graded_callback
()
graded_callback
:
()
=>
@
grade
=
$
(
"input[name='grade-selection']:checked"
).
val
()
if
@
grade
==
undefined
...
...
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