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
59336ee0
Commit
59336ee0
authored
Aug 16, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix prompt hiding issue in peer grading
parent
48b0e570
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
+7
-8
lms/templates/peer_grading/peer_grading_problem.html
+2
-2
No files found.
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
View file @
59336ee0
...
...
@@ -257,8 +257,6 @@ class @PeerGradingProblem
$
(
window
).
keydown
@
keydown_handler
$
(
window
).
keyup
@
keyup_handler
@
collapse_question
()
Collapsible
.
setCollapsibles
(
@
content_panel
)
# Set up the click event handlers
...
...
@@ -571,16 +569,17 @@ class @PeerGradingProblem
@
grading_message
.
fadeIn
()
@
grading_message
.
html
(
"<p>"
+
msg
+
"</p>"
)
collapse_question
:
()
=>
collapse_question
:
(
event
)
=>
@
prompt_container
.
slideToggle
()
@
prompt_container
.
toggleClass
(
'open'
)
if
@
question_header
.
text
()
==
"
(Hide)
"
Logger
.
log
'peer_grading_hide_question'
,
{
location
:
@
location
}
new_text
=
"(Show)"
if
@
question_header
.
text
()
==
"
Hide Prompt
"
new_text
=
"Show Prompt"
Logger
.
log
'oe_hide_question'
,
{
location
:
@
location
}
else
Logger
.
log
'
peer_grading
_show_question'
,
{
location
:
@
location
}
new_text
=
"
(Hide)
"
Logger
.
log
'
oe
_show_question'
,
{
location
:
@
location
}
new_text
=
"
Hide Prompt
"
@
question_header
.
text
(
new_text
)
return
false
scroll_to_top
:
()
=>
$
(
'html, body'
).
animate
({
...
...
lms/templates/peer_grading/peer_grading_problem.html
View file @
59336ee0
...
...
@@ -14,10 +14,10 @@
</div>
<div
class=
"prompt-wrapper"
>
<div
class=
"visibility-control visibility-control-
rubric
"
>
<div
class=
"visibility-control visibility-control-
prompt
"
>
<div
class=
"inner"
>
</div>
<
span
class=
"section-header section-header-rubric"
>
${_('Hide Prompt')}
</span
>
<
a
href=
""
class=
"section-header section-header-prompt question-header"
>
${_('Hide Prompt')}
</a
>
</div>
<div
class=
"prompt-information-container"
>
<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