Fix teacher quote page having lots of blank space at the bottom.

This is due to "flying-focus" taking up space at the bottom of the page. This solution is a bandaid. Ideally we have view-swapping logic that contains this type of thing and we just swap out views using one function.
This commit is contained in:
phoenixeliot 2016-03-25 13:57:26 -07:00
parent 914e7eb487
commit 8d254c700a

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: ->