Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
bcf7ec7c
Commit
bcf7ec7c
authored
Dec 22, 2016
by
Matjaz Gregoric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure icons are aria-hidden and have sr text.
parent
b6e95497
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
drag_and_drop_v2/public/js/drag_and_drop.js
+12
-2
drag_and_drop_v2/templates/html/drag_and_drop.html
+2
-1
drag_and_drop_v2/translations/en/LC_MESSAGES/text.po
+4
-0
drag_and_drop_v2/translations/eo/LC_MESSAGES/text.po
+4
-0
No files found.
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
bcf7ec7c
...
...
@@ -8,7 +8,8 @@ function DragAndDropTemplates(configuration) {
}
return
(
h
(
"div.spinner-wrapper"
,
{
key
:
item
.
value
+
'-spinner'
},
[
h
(
"span.fa.fa-spin.fa-spinner"
)
h
(
"span.fa.fa-spin.fa-spinner"
,
{
attributes
:
{
'aria-hidden'
:
true
}}),
h
(
"span.sr"
,
gettext
(
'Saving'
))
])
);
};
...
...
@@ -305,13 +306,22 @@ function DragAndDropTemplates(configuration) {
attemptsUsedInfo
=
h
(
"span.attempts-used"
,
{
id
:
attemptsUsedId
},
attemptsUsedText
);
}
var
submitSpinner
=
null
;
if
(
ctx
.
submit_spinner
)
{
submitSpinner
=
h
(
'span'
,
[
h
(
'span.fa.fa-spin.fa-spinner'
,
{
attributes
:
{
'aria-hidden'
:
true
}}),
h
(
'span.sr'
,
gettext
(
'Saving'
))
]);
}
return
(
h
(
"div.action-toolbar-item.submit-answer"
,
{},
[
h
(
"button.btn-brand.submit-answer-button"
,
submitButtonProperties
,
[
(
ctx
.
submit_spinner
?
h
(
"span.fa.fa-spin.fa-spinner"
)
:
null
),
submitSpinner
,
' '
,
// whitespace between spinner icon and text
gettext
(
"Submit"
)
]
),
...
...
drag_and_drop_v2/templates/html/drag_and_drop.html
View file @
bcf7ec7c
{% load i18n %}
<div
class=
"themed-xblock xblock--drag-and-drop"
>
<span
class=
"fa fa-spin fa-spinner initial-load-spinner"
></span>
{% trans "Loading drag and drop problem." %}
<span
class=
"fa fa-spin fa-spinner initial-load-spinner"
aria-hidden=
"true"
></span>
{% trans "Loading drag and drop problem." %}
</div>
drag_and_drop_v2/translations/en/LC_MESSAGES/text.po
View file @
bcf7ec7c
...
...
@@ -616,6 +616,10 @@ msgstr ""
msgid "Actions"
msgstr ""
#: drag_and_drop_v2/public/js/drag_and_drop.js:12
msgid "Saving"
msgstr ""
#: utils.py:44
msgid "Your highest score is {score}"
msgstr ""
...
...
drag_and_drop_v2/translations/eo/LC_MESSAGES/text.po
View file @
bcf7ec7c
...
...
@@ -715,6 +715,10 @@ msgstr "Dröp Tärgéts Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
msgid "Actions"
msgstr "Àçtïöns Ⱡ'σяєм ιρѕυм #"
#: drag_and_drop_v2/public/js/drag_and_drop.js:12
msgid "Saving"
msgstr "Sävïng Ⱡ'σяєм ιρѕυ#"
#: utils.py:44
msgid "Your highest score is {score}"
msgstr "Ýöür hïghést sçöré ïs {score} Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕ#"
...
...
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