diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index 2ed5cf323..f48ddcb05 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -12,6 +12,12 @@ class App.Controller extends Spine.Controller navupdate: (url) -> Spine.trigger 'navupdate', url + scrollTo: ( x = 0, y = 0 ) -> + a = -> + window.scrollTo( 0,0 ) + + @delay( a, 0 ) + # # extend delegateEvents to unbind and undelegate # delegateEvents: -> #