Commit 42486a5e by Chris Rodriguez

Adding ARIA label to selected conversation

parent b17290cd
...@@ -243,13 +243,13 @@ if Backbone? ...@@ -243,13 +243,13 @@ if Backbone?
@trigger("thread:removed", thread_id) @trigger("thread:removed", thread_id)
setActiveThread: (thread_id) -> setActiveThread: (thread_id) ->
@$(".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").removeClass("is-active").removeAttr('aria-label')
@$(".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").attr('aria-label', 'Current conversation')
goHome: -> goHome: ->
@template = _.template($("#discussion-home").html()) @template = _.template($("#discussion-home").html())
$(".forum-content").html(@template) $(".forum-content").html(@template)
$(".forum-nav-thread-list a").removeClass("is-active") $(".forum-nav-thread-list a").removeClass("is-active").removeAttr('aria-label')
$("input.email-setting").bind "click", @updateEmailNotifications $("input.email-setting").bind "click", @updateEmailNotifications
url = DiscussionUtil.urlFor("notifications_status",window.user.get("id")) url = DiscussionUtil.urlFor("notifications_status",window.user.get("id"))
DiscussionUtil.safeAjax DiscussionUtil.safeAjax
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment