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
c1cbeaec
Commit
c1cbeaec
authored
Oct 11, 2013
by
Greg Price
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1321 from edx/gprice/forum-loading-a11y
Add accessible text to forum loading animations
parents
11142c7c
1187e718
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
common/static/coffee/src/discussion/utils.coffee
+1
-1
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+2
-2
lms/templates/discussion/_underscore_templates.html
+1
-1
lms/templates/discussion/mustache/_inline_thread.mustache
+1
-1
lms/templates/discussion/mustache/_inline_thread_cohorted.mustache
+1
-1
No files found.
common/static/coffee/src/discussion/utils.coffee
View file @
c1cbeaec
...
...
@@ -3,7 +3,7 @@ $ ->
window
.
$
$contents
=
{}
$
.
fn
.
extend
loading
:
->
@
$_loading
=
$
(
"<div class='loading-animation'></div>"
)
@
$_loading
=
$
(
"<div class='loading-animation'><
span class='sr'>Loading content</span><
/div>"
)
$
(
this
).
after
(
@
$_loading
)
loaded
:
->
@
$_loading
.
remove
()
...
...
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
c1cbeaec
...
...
@@ -124,7 +124,7 @@ if Backbone?
loadMorePages
:
(
event
)
->
if
event
event
.
preventDefault
()
@
$
(
".more-pages"
).
html
(
'<div class="loading-animation"></div>'
)
@
$
(
".more-pages"
).
html
(
'<div class="loading-animation"><
span class="sr">Loading more threads</span><
/div>'
)
@
$
(
".more-pages"
).
addClass
(
"loading"
)
options
=
{}
switch
@
mode
...
...
@@ -405,7 +405,7 @@ if Backbone?
type
:
"GET"
$loading
:
$
loadingCallback
:
=>
@
$
(
".post-list"
).
html
(
'<li class="loading"><div class="loading-animation"></div></li>'
)
@
$
(
".post-list"
).
html
(
'<li class="loading"><div class="loading-animation"><
span class="sr">Loading thread list</span><
/div></li>'
)
loadedCallback
:
=>
if
callback
callback
.
apply
@
,
[
value
]
...
...
lms/templates/discussion/_underscore_templates.html
View file @
c1cbeaec
...
...
@@ -6,7 +6,7 @@
<
div
class
=
"thread-content-wrapper"
><
/div
>
<
ol
class
=
"responses"
>
<
li
class
=
"loading"
><
div
class
=
"loading-animation"
><
/div></
li
>
<
li
class
=
"loading"
><
div
class
=
"loading-animation"
><
span
class
=
"sr"
>
Loading
content
<
/span><
/
div
><
/li
>
<
/ol
>
<
div
class
=
"post-status-closed bottom-post-status"
style
=
"display: none"
>
$
{
_
(
"This thread is closed."
)}
...
...
lms/templates/discussion/mustache/_inline_thread.mustache
View file @
c1cbeaec
...
...
@@ -2,7 +2,7 @@
<div
class=
"thread-content-wrapper"
></div>
<ol
class=
"responses post-extended-content"
>
<li
class=
"loading"
><div
class=
"loading-animation"
></div></li>
<li
class=
"loading"
><div
class=
"loading-animation"
><
span
class=
"sr"
>
Loading content
</span><
/div></li>
</ol>
<form
class=
"local discussion-reply-new post-extended-content"
data-id=
"
{{
id
}}
"
>
<h4>
Post a response:
</h4>
...
...
lms/templates/discussion/mustache/_inline_thread_cohorted.mustache
View file @
c1cbeaec
...
...
@@ -4,7 +4,7 @@
<div
class=
"thread-content-wrapper"
></div>
<ol
class=
"responses post-extended-content"
>
<li
class=
"loading"
><div
class=
"loading-animation"
></div></li>
<li
class=
"loading"
><div
class=
"loading-animation"
><
span
class=
"sr"
>
Loading content
</span><
/div></li>
</ol>
<form
class=
"local discussion-reply-new post-extended-content"
data-id=
"
{{
id
}}
"
>
<h4>
Post a response:
</h4>
...
...
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