Merge pull request #3508 from codecombat/fix-teacher-quote-scroll

Fix teacher quote page having lots of blank space at the bottom (after submitting the form)
This commit is contained in:
Scott Erickson 2016-03-28 11:59:56 -07:00
commit 996200220f

View file

@ -114,6 +114,7 @@ module.exports = class RequestQuoteView extends RootView
onTrialRequestSubmit: ->
@$('form, #form-submit-success').toggleClass('hide')
$('#flying-focus').css({top: 0, left: 0}) # Hack copied from Router.coffee#187. Ideally we'd swap out the view and have view-swapping logic handle this
window.tracker?.trackEvent 'Submit Trial Request', category: 'Teachers', label: 'Trial Request', ['Mixpanel']
onClickLoginButton: ->