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
02fc7fd8
Commit
02fc7fd8
authored
Mar 13, 2015
by
Ahsan Ulhaq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed sr span inside the show answer button
parent
a715bd70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+0
-2
lms/templates/problem.html
+1
-1
No files found.
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
02fc7fd8
...
...
@@ -379,7 +379,6 @@ class @Problem
`//
Translators
:
the
word
Answer
here
refers
to
the
answer
to
a
problem
the
student
must
solve
.
`
@
$
(
'.show-label'
).
text
gettext
(
'Hide Answer'
)
@
$
(
'.show-label .sr'
).
text
gettext
(
'Hide Answer'
)
@
el
.
addClass
'showed'
@
updateProgress
response
window
.
SR
.
readElts
(
answer_text
)
...
...
@@ -389,7 +388,6 @@ class @Problem
@
el
.
removeClass
'showed'
`//
Translators
:
the
word
Answer
here
refers
to
the
answer
to
a
problem
the
student
must
solve
.
`
@
$
(
'.show-label'
).
text
gettext
(
'Show Answer'
)
@
$
(
'.show-label .sr'
).
text
gettext
(
'Reveal Answer'
)
window
.
SR
.
readText
(
gettext
(
'Answer hidden'
))
@
el
.
find
(
".capa_inputtype"
).
each
(
index
,
inputtype
)
=>
...
...
lms/templates/problem.html
View file @
02fc7fd8
...
...
@@ -23,7 +23,7 @@
<button
class=
"save"
data-value=
"${_('Save')}"
>
${_('Save')}
<span
class=
"sr"
>
${_("your answer")}
</span></button>
% endif
% if answer_available:
<button
class=
"show"
><span
class=
"show-label"
>
${_('Show Answer')}
</span>
<
span
class=
"sr"
>
${_("Reveal Answer")}
</span><
/button>
<button
class=
"show"
><span
class=
"show-label"
>
${_('Show Answer')}
</span>
</button>
% endif
% if attempts_allowed :
<div
class=
"submission_feedback"
>
...
...
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