Skip to content

Commit

Permalink
follow bottom of log by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed May 29, 2016
1 parent c6e84d7 commit a8ba291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/resources/webapp/js/LogStationScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ function resetAll() {
window.scrollFollow = "follow"
}

function enableScrollFollow() {
window.scrollFollow = "follow"
}

// increment number of lines in all logs, and handle truncating if they get too large
function incrementTotalLogLines(logId) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LogStationPage extends CometActor with CometListener with Loggable {

def render = {
partialUpdate(JsFunc("updateMaxLogLinesPerLog", maxLogLinesPerLog).cmd)
// partialUpdate(JsFunc("resetAll").cmd)
partialUpdate(JsFunc("enableScrollFollow").cmd)
ClearClearable
}

Expand Down

0 comments on commit a8ba291

Please sign in to comment.