Merge pull request #6766 from edx/clrux/forums-indicate-current-convo

Adding ARIA label to selected conversation
This commit is contained in:
Chris
2015-01-29 11:26:25 -05:00

View File

@@ -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