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
0ec1db81
Commit
0ec1db81
authored
Jan 07, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in a message area
parent
1e4c8595
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+5
-8
lms/templates/combined_open_ended.html
+0
-1
lms/templates/combined_open_ended_status.html
+3
-2
lms/templates/open_ended.html
+1
-0
lms/templates/self_assessment_prompt.html
+2
-0
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
0ec1db81
...
...
@@ -74,13 +74,9 @@ class @CombinedOpenEnded
@
hint_area
.
attr
(
'disabled'
,
true
)
@
submit_button
.
hide
()
if
@
task_number
<
@
task_count
@
next_problem
_button
.
show
()
@
next_problem
else
@
next_problem_button
.
hide
()
#if @allow_reset
@
reset_button
.
show
()
#else
# @reset_button.hide()
find_assessment_elements
:
->
...
...
@@ -161,8 +157,7 @@ class @CombinedOpenEnded
else
@
errors_area
.
html
(
'Problem state got out of sync. Try reloading the page.'
)
next_problem
:
(
event
)
=>
event
.
preventDefault
()
next_problem
:
=>
if
@
child_state
==
'done'
$
.
postWithPrefix
"
#{
@
ajax_url
}
/next_problem"
,
{},
(
response
)
=>
if
response
.
success
...
...
@@ -203,7 +198,7 @@ class @CombinedOpenEnded
processData
:
false
contentType
:
false
success
:
(
response
)
=>
@
gentle_alert
response
.
m
essage
@
gentle_alert
response
.
m
sg
@
$
(
'section.evaluation'
).
slideToggle
()
@
message_wrapper
.
html
(
response
.
message_html
)
@
child_state
=
'done'
...
...
@@ -216,4 +211,5 @@ class @CombinedOpenEnded
if
@
el
.
find
(
'.open-ended-alert'
).
length
@
el
.
find
(
'.open-ended-alert'
).
remove
()
alert_elem
=
"<div class='open-ended-alert'>"
+
msg
+
"</div>"
@
el
.
find
(
'.open-ended-action'
).
after
(
alert_elem
)
@
el
.
find
(
'.open-ended-alert'
).
css
(
opacity
:
0
).
animate
(
opacity
:
1
,
700
)
\ No newline at end of file
lms/templates/combined_open_ended.html
View file @
0ec1db81
...
...
@@ -8,6 +8,5 @@
<input
type=
"button"
value=
"Reset"
class=
"reset-button"
name=
"reset"
/>
<input
type=
"button"
value=
"Next Step"
class=
"next-step-button"
name=
"reset"
/>
</section>
lms/templates/combined_open_ended_status.html
View file @
0ec1db81
<section
id=
"combined-open-ended-status"
class=
"combined-open-ended-status"
>
%for status in status_list:
<
statusitem
>
<
div
class=
"statusitem"
>
Step ${status['task_number']} (${status['state']}) : ${status['score']} / ${status['max_score']}
%if status['type']=="openended":
${status['post_assessment']}
%endif
</
statusitem
>
</
div
>
%endfor
</section>
\ No newline at end of file
lms/templates/open_ended.html
View file @
0ec1db81
...
...
@@ -51,5 +51,6 @@
</div>
% endif
</div>
<div
class=
"open-ended-action"
></div>
<div
class=
"open-ended-alert"
></div>
</section>
lms/templates/self_assessment_prompt.html
View file @
0ec1db81
...
...
@@ -16,4 +16,6 @@
<div
class=
"message-wrapper"
>
${initial_message}
</div>
<input
type=
"button"
value=
"Submit"
class=
"submit-button"
name=
"show"
/>
<div
class=
"open-ended-action"
></div>
<div
class=
"open-ended-alert"
></div>
</section>
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