From 8d254c700aefeb79bb1abcd94d39fdad6d3cf248 Mon Sep 17 00:00:00 2001 From: phoenixeliot Date: Fri, 25 Mar 2016 13:57:26 -0700 Subject: [PATCH] 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. --- app/views/RequestQuoteView.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/RequestQuoteView.coffee b/app/views/RequestQuoteView.coffee index 83760bf7e..9542277fd 100644 --- a/app/views/RequestQuoteView.coffee +++ b/app/views/RequestQuoteView.coffee @@ -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: ->