Assigning focus to the selected topic

TNL-2620
This commit is contained in:
Chris Rodriguez
2015-07-30 15:01:56 -04:00
committed by cahrens
parent 22b3c0bc9b
commit f63ff69097
3 changed files with 15 additions and 2 deletions

View File

@@ -162,6 +162,7 @@ if Backbone?
)
@trigger "thread:responses:rendered"
@loadedResponses = true
@$el.find('.discussion-article[data-id="' + @model.id + '"]').focus() # Sends focus to the discussion once the thread loads
error: (xhr, textStatus) =>
return if textStatus == 'abort'