diff --git a/app/views/repos-list.coffee b/app/views/repos-list.coffee index 5d4fba03..392294df 100644 --- a/app/views/repos-list.coffee +++ b/app/views/repos-list.coffee @@ -23,7 +23,13 @@ View = Ember.CollectionView.extend colorForState(@get('repo.lastBuildState')) ).property('repo.lastBuildState') + scrollTop: (-> + if (window.scrollY > 0) + $('html, body').animate({scrollTop: 0}, 200) + ) + click: -> + @scrollTop() @get('controller').transitionToRoute('/' + @get('repo.slug')) `export default View`