Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
59336ee0
Commit
59336ee0
authored
11 years ago
by
Vik Paruchuri
Browse files
Options
Downloads
Patches
Plain Diff
Fix prompt hiding issue in peer grading
parent
48b0e570
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
+7
-8
7 additions, 8 deletions
...le/xmodule/js/src/peergrading/peer_grading_problem.coffee
lms/templates/peer_grading/peer_grading_problem.html
+2
-2
2 additions, 2 deletions
lms/templates/peer_grading/peer_grading_problem.html
with
9 additions
and
10 deletions
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
+
7
−
8
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
({
...
...
This diff is collapsed.
Click to expand it.
lms/templates/peer_grading/peer_grading_problem.html
+
2
−
2
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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment