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:
Chris Houseknecht 2014-07-10 11:07:09 -04:00
parent c774cc7e33
commit fb09a4b693

View File

@ -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 + '/');