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
53b22da9
Commit
53b22da9
authored
Jan 29, 2015
by
Chris
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6766 from edx/clrux/forums-indicate-current-convo
Adding ARIA label to selected conversation
parents
dc5b88cc
d30088dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+3
-2
No files found.
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
53b22da9
...
...
@@ -243,13 +243,14 @@ if Backbone?
@
trigger
(
"thread:removed"
,
thread_id
)
setActiveThread
:
(
thread_id
)
->
@
$
(
".forum-nav-thread-link"
).
find
(
".sr"
).
remove
()
@
$
(
".forum-nav-thread[data-id!='
#{
thread_id
}
'] .forum-nav-thread-link"
).
removeClass
(
"is-active"
)
@
$
(
".forum-nav-thread[data-id='
#{
thread_id
}
'] .forum-nav-thread-link"
).
addClass
(
"is-active"
)
@
$
(
".forum-nav-thread[data-id='
#{
thread_id
}
'] .forum-nav-thread-link"
).
addClass
(
"is-active"
)
.
find
(
".forum-nav-thread-wrapper-1"
).
prepend
(
'<span class="sr">'
+
gettext
(
"Current conversation"
)
+
'</span>'
)
goHome
:
->
@
template
=
_
.
template
(
$
(
"#discussion-home"
).
html
())
$
(
".forum-content"
).
html
(
@
template
)
$
(
".forum-nav-thread-list a"
).
removeClass
(
"is-active"
)
$
(
".forum-nav-thread-list a"
).
removeClass
(
"is-active"
)
.
find
(
".sr"
).
remove
()
$
(
"input.email-setting"
).
bind
"click"
,
@
updateEmailNotifications
url
=
DiscussionUtil
.
urlFor
(
"notifications_status"
,
window
.
user
.
get
(
"id"
))
DiscussionUtil
.
safeAjax
...
...
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