Commit 6e0ddf14 by Tom Giannattasio

prevent scrolling when topic menu is dropped

parent 32b07d56
......@@ -103,11 +103,11 @@ class @DiscussionThreadListView extends Backbone.View
if @$(".browse").hasClass('is-dropped')
@$(".browse-topic-drop-menu-wrapper").show()
$('body').bind 'click', @toggleTopicDrop
$('body').bind 'keyup', @setActiveItem
$('body').bind 'keydown', @setActiveItem
else
@$(".browse-topic-drop-menu-wrapper").hide()
$('body').unbind 'click', @toggleTopicDrop
$('body').unbind 'keyup', @setActiveItem
$('body').unbind 'keydown', @setActiveItem
setTopic: (event) ->
item = $(event.target).closest('a')
......
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