mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Job stdout page
Fixed ability to restart automatic scroll-to-bottom while live events are streaming. When user scrolls up during live event processing automatic scroll-to-bottom stops. If user scrolls all the way to bottom, it now restarts.
This commit is contained in:
parent
c774cc7e33
commit
fb09a4b693
@ -135,6 +135,10 @@ function JobStdoutController ($log, $rootScope, $scope, $compile, $routeParams,
|
||||
if (detectDirection() === "up") {
|
||||
should_apply_live_events = false;
|
||||
}
|
||||
|
||||
if ($(this).scrollTop() + $(this).height() === $(this).prop("scrollHeight")) {
|
||||
should_apply_live_events = true;
|
||||
}
|
||||
});
|
||||
|
||||
Rest.setUrl(GetBasePath('jobs') + job_id + '/');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user