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
a3c1f7c9
Commit
a3c1f7c9
authored
Jan 07, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feedback submission moved
parent
b83df64f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+3
-3
common/lib/xmodule/xmodule/open_ended_module.py
+1
-1
lms/templates/open_ended_evaluation.html
+2
-0
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
a3c1f7c9
...
...
@@ -20,6 +20,8 @@ class @CombinedOpenEnded
@
next_problem_button
.
click
@
next_problem
# valid states: 'initial', 'assessing', 'post_assessment', 'done'
Collapsible
.
setCollapsibles
(
@
el
)
@
submit_evaluation_button
=
$
(
'.submit-evaluation-button'
)
@
submit_evaluation_button
.
click
@
message_post
# Where to put the rubric once we load it
@
el
=
$
(
element
).
find
(
'section.open-ended-child'
)
...
...
@@ -30,8 +32,6 @@ class @CombinedOpenEnded
@
hint_wrapper
=
@
$
(
'.hint-wrapper'
)
@
message_wrapper
=
@
$
(
'.message-wrapper'
)
@
submit_button
=
@
$
(
'.submit-button'
)
@
submit_evaluation_button
=
@
$
(
'.submit-evaluation-button'
)
@
submit_evaluation_button
.
click
@
message_post
@
child_state
=
@
el
.
data
(
'state'
)
@
child_type
=
@
el
.
data
(
'child-type'
)
if
@
child_type
==
"openended"
...
...
@@ -207,7 +207,7 @@ class @CombinedOpenEnded
Logger
.
log
'message_post'
,
@
answers
fd
=
new
FormData
()
feedback
=
@
$
(
'section.evaluation textarea.feedback-on-feedback'
)[
0
].
value
feedback
=
$
(
'section.evaluation textarea.feedback-on-feedback'
)[
0
].
value
submission_id
=
$
(
'div.external-grader-message div.submission_id'
)[
0
].
innerHTML
grader_id
=
$
(
'div.external-grader-message div.grader_id'
)[
0
].
innerHTML
score
=
$
(
".evaluation-scoring input:radio[name='evaluation-score']:checked"
).
val
()
...
...
common/lib/xmodule/xmodule/open_ended_module.py
View file @
a3c1f7c9
...
...
@@ -405,7 +405,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
return
correct
def
format_feedback_with_evaluation
(
self
,
feedback
):
context
=
{
'msg'
:
feedback
,
id
:
"1"
,
rows
:
30
,
cols
:
30
}
context
=
{
'msg'
:
feedback
,
'id'
:
"1"
,
'rows'
:
30
,
'cols'
:
30
}
html
=
render_to_string
(
'open_ended_evaluation.html'
,
context
)
return
html
...
...
lms/templates/open_ended_evaluation.html
View file @
a3c1f7c9
...
...
@@ -17,6 +17,7 @@
</div>
<p>
Additional comments:
</p>
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"feedback_${id}"
class=
"feedback-on-feedback"
id=
"feedback_${id}"
></textarea>
<input
type=
"button"
value=
"Submit Feedback"
class=
"submit-evaluation-button"
name=
"reset"
/>
</section>
</div>
</div>
\ 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