Removed autoscrolling

This commit is contained in:
Michael Schmatz 2014-07-03 16:40:00 -07:00
parent d3cc9ae179
commit 6a33ca0892

View file

@ -152,10 +152,10 @@ module.exports = class EmployersView extends View
renderCandidatesAndSetupScrolling: =>
@render()
$(".nano").nanoScroller()
if window.history?.state?.lastViewedCandidateID
$(".nano").nanoScroller({scrollTo:$("#" + window.history.state.lastViewedCandidateID)})
else if window.location.hash.length is 25
$(".nano").nanoScroller({scrollTo:$(window.location.hash)})
#if window.history?.state?.lastViewedCandidateID
# $(".nano").nanoScroller({scrollTo:$("#" + window.history.state.lastViewedCandidateID)})
#else if window.location.hash.length is 25
# $(".nano").nanoScroller({scrollTo:$(window.location.hash)})
checkForEmployerSignupHash: =>
if window.location.hash is "#employerSignupLoggingIn" and not ("employer" in me.get("permissions"))