diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index 306cca368..d9717a42c 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -1,4 +1,7 @@ class App.TicketZoom extends App.Controller + elements: + '.main': 'main' + events: 'click .js-submit': 'submit' @@ -385,6 +388,11 @@ class App.TicketZoom extends App.Controller @bindScrollPageHeader() + @scrollToBottom() + + scrollToBottom: -> + @main.scrollTop( @main.prop('scrollHeight') ) + bindScrollPageHeader: -> pageHeader = @$('.page-header') scrollHolder = pageHeader.scrollParent()