Skip to content

Commit

Permalink
scrolling back in action
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzettler committed Apr 5, 2012
1 parent 8f2e6cc commit bf78300
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/assets/javascripts/backbone/helpers/channels.js.coffee
Expand Up @@ -18,13 +18,11 @@ class Kandan.Helpers.Channels

@scrollToLatestMessage: (channelId)->
console.log("scrolling to last message");
$('document').scrollTop($('document').height()+900)
#@channel_activities_el(channelId).parent().scrollTop(100000)
$(document).scrollTop($(document).height()+9000)

@currentScrollPosition: (channelId)->
console.log("current scroll position");
$('document').scrollTop()
#@channel_activities_el(channelId).parent().scrollTop()
$(document).scrollTop()

@channel_activities_el: (channelId)->
$("#channel-activities-#{channelId}")
Expand Down

0 comments on commit bf78300

Please sign in to comment.