1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Merge pull request #2742 from jlmitch5/fixScrollTop

fix scroll top

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2018-11-19 16:56:27 +00:00 committed by GitHub
commit 67273ff8c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,11 +310,11 @@ angular
}
if(!_.isEqual(toParamsWithoutSearchKeys, fromParamsWithoutSearchKeys)) {
document.querySelector('.at-Layout-main').scrollTop = 0;
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
}
else {
document.querySelector('.at-Layout-main').scrollTop = 0;
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
if (trans.from().name === 'license' && trans.params('to').hasOwnProperty('licenseMissing')) {