Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
21c3322b
Commit
21c3322b
authored
May 12, 2014
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bottom-of-page detection for incremental activity log.
parent
3fc1093a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
www/fetchlogfile.php3
www/fetchlogfile.php3
+2
-2
No files found.
www/fetchlogfile.php3
View file @
21c3322b
...
...
@@ -37,11 +37,11 @@
// If the user is scrolled to the bottom, make sure they
// stay scrolled to the bottom after appending.
var
shouldScroll
=
(
document
.
body
.
scrollHeight
-
document
.
body
.
clientHeight
==
document
.
body
.
scrollTop
);
var
shouldScroll
=
(
(
document
.
body
.
scrollHeight
>
document
.
body
.
clientHeight
)
||
(
document
.
body
.
scrollHeight
-
document
.
body
.
scrollTop
===
document
.
body
.
clientHeight
)
);
$
(
'
pre
'
).
append
(
_
.
escape
(
newText
));
if
(
shouldScroll
)
{
document
.
body
.
scrollTop
=
document
.
body
.
scrollHeight
-
document
.
body
.
clientHeight
;
document
.
body
.
scrollTop
=
document
.
body
.
scrollHeight
;
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment