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
fd382232
Commit
fd382232
authored
Aug 08, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix grading submitted messages
parent
bd909759
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+4
-6
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
+2
-1
lms/templates/combinedopenended/openended/open_ended.html
+5
-5
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
fd382232
...
...
@@ -326,9 +326,8 @@ class @CombinedOpenEnded
if
@
child_type
==
"openended"
@
submit_button
.
hide
()
@
queueing
()
if
@
task_number
==
1
and
@
task_count
==
1
@
grader_status
=
@
$
(
@
grader_status_sel
)
@
grader_status
.
html
(
"<p>Response submitted for scoring.</p>"
)
@
grader_status
=
@
$
(
@
grader_status_sel
)
@
grader_status
.
html
(
"<span class='grading'>Your response has been submitted. Please check back later for your grade.</span> "
)
else
if
@
child_state
==
'post_assessment'
if
@
child_type
==
"openended"
@
skip_button
.
show
()
...
...
@@ -341,6 +340,8 @@ class @CombinedOpenEnded
else
@
submit_button
.
click
@
message_post
else
if
@
child_state
==
'done'
@
show_combined_rubric_current
()
@
show_results_current
()
@
rubric_wrapper
.
hide
()
@
answer_area
.
attr
(
"disabled"
,
true
)
@
replace_text_inputs
()
...
...
@@ -351,9 +352,6 @@ class @CombinedOpenEnded
if
@
task_number
<
@
task_count
@
next_problem_button
.
show
()
else
if
@
task_number
==
1
and
@
task_count
==
1
@
show_combined_rubric_current
()
@
show_results_current
()
@
reset_button
.
show
()
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
View file @
fd382232
...
...
@@ -640,6 +640,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
"""
# Once we close the problem, we should not allow students
# to save answers
error_message
=
""
closed
,
msg
=
self
.
check_if_closed
()
if
closed
:
return
msg
...
...
@@ -692,7 +693,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
score
=
self
.
latest_score
()
correct
=
'correct'
if
self
.
is_submission_correct
(
score
)
else
'incorrect'
if
self
.
child_state
==
self
.
ASSESSING
:
eta_string
=
""
eta_string
=
"
Your response has been submitted. Please check back later for your grade.
"
else
:
post_assessment
=
""
correct
=
""
...
...
lms/templates/combinedopenended/openended/open_ended.html
View file @
fd382232
...
...
@@ -3,11 +3,11 @@
<div
class=
"prompt"
>
${prompt|n}
</div>
<div
class=
"visibility-control visibility-control-response"
>
<div
class=
"inner"
>
<div
class=
"visibility-control visibility-control-response"
>
<div
class=
"inner"
>
</div>
<span
class=
"section-header section-header-response"
>
Response
</span>
</div>
<span
class=
"section-header section-header-response"
>
Response
</span>
</div>
<textarea
rows=
"${rows}"
cols=
"${cols}"
name=
"answer"
class=
"answer short-form-response"
id=
"input_${id}"
>
${previous_answer|h}
</textarea>
<div
class=
"message-wrapper"
></div>
...
...
@@ -15,7 +15,7 @@
% if state == 'initial':
<span
class=
"unanswered"
style=
"display:inline-block;"
id=
"status_${id}"
>
Unanswered
</span>
% elif state == 'assessing':
<span
class=
"grading"
id=
"status_${id}"
>
Submitted for grading.
<span
class=
"grading"
id=
"status_${id}"
>
% if eta_message is not None:
${eta_message}
% endif
...
...
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