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
98142c02
Commit
98142c02
authored
Sep 16, 2013
by
Greg Price
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve accessibility of forum nav sort buttons
parent
f3f59d0f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
CHANGELOG.rst
+2
-0
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+7
-3
lms/templates/discussion/_thread_list_template.html
+5
-5
No files found.
CHANGELOG.rst
View file @
98142c02
...
@@ -5,6 +5,8 @@ These are notable changes in edx-platform. This is a rolling list of changes,
...
@@ -5,6 +5,8 @@ These are notable changes in edx-platform. This is a rolling list of changes,
in roughly chronological order, most recent first. Add your entries at or near
in roughly chronological order, most recent first. Add your entries at or near
the top. Include a label indicating the component affected.
the top. Include a label indicating the component affected.
LMS: Improved accessibility of forum navigation sort buttons
LMS: enhanced shib support, including detection of linked shib account
LMS: enhanced shib support, including detection of linked shib account
at login page and support for the ?next= GET parameter.
at login page and support for the ?next= GET parameter.
...
...
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
98142c02
...
@@ -353,9 +353,13 @@ if Backbone?
...
@@ -353,9 +353,13 @@ if Backbone?
@
loadMorePages
(
event
)
@
loadMorePages
(
event
)
sortThreads
:
(
event
)
->
sortThreads
:
(
event
)
->
@
$
(
".sort-bar a"
).
removeClass
(
"active"
)
activeSort
=
@
$
(
".sort-bar a[class='active']"
)
$
(
event
.
target
).
addClass
(
"active"
)
activeSort
.
removeClass
(
"active"
)
@
sortBy
=
$
(
event
.
target
).
data
(
"sort"
)
activeSort
.
attr
(
"aria-checked"
,
"false"
)
newSort
=
$
(
event
.
target
)
newSort
.
addClass
(
"active"
)
newSort
.
attr
(
"aria-checked"
,
"true"
)
@
sortBy
=
newSort
.
data
(
"sort"
)
@
displayedCollection
.
comparator
=
switch
@
sortBy
@
displayedCollection
.
comparator
=
switch
@
sortBy
when
'date'
then
@
displayedCollection
.
sortByDateRecentFirst
when
'date'
then
@
displayedCollection
.
sortByDateRecentFirst
...
...
lms/templates/discussion/_thread_list_template.html
View file @
98142c02
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"sort-bar"
>
<
div
class
=
"sort-bar"
>
<
span
class
=
"sort-label"
>
$
{
_
(
"Sort by:"
)}
<
/span
>
<
span
class
=
"sort-label"
id
=
"sort-label"
>
$
{
_
(
"Sort by:"
)}
<
/span
>
<
ul
>
<
ul
role
=
"radiogroup"
aria
-
labelledby
=
"sort-label"
>
<
li
><
a
href
=
"#"
class
=
"active"
data
-
sort
=
"date"
>
$
{
_
(
"date"
)}
<
/a></
li
>
<
li
><
a
href
=
"#"
role
=
"radio"
aria
-
checked
=
"true"
class
=
"active"
data
-
sort
=
"date"
>
$
{
_
(
"date"
)}
<
/a></
li
>
<
li
><
a
href
=
"#"
data
-
sort
=
"votes"
>
$
{
_
(
"votes"
)}
<
/a></
li
>
<
li
><
a
href
=
"#"
role
=
"radio"
aria
-
checked
=
"false"
data
-
sort
=
"votes"
>
$
{
_
(
"votes"
)}
<
/a></
li
>
<
li
><
a
href
=
"#"
data
-
sort
=
"comments"
>
$
{
_
(
"comments"
)}
<
/a></
li
>
<
li
><
a
href
=
"#"
role
=
"radio"
aria
-
checked
=
"false"
data
-
sort
=
"comments"
>
$
{
_
(
"comments"
)}
<
/a></
li
>
<
/ul
>
<
/ul
>
...
...
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