Commit 73b7eea5 authored by Leo Iannacone's avatar Leo Iannacone

scroll down page on getting file update

parent 24fe07ee
...@@ -108,6 +108,8 @@ var Page = { ...@@ -108,6 +108,8 @@ var Page = {
append: function(data) { append: function(data) {
new_html = $("#file pre").html() + data.file.new_content new_html = $("#file pre").html() + data.file.new_content
$("#file pre").html(new_html) $("#file pre").html(new_html)
// scroll down
$('body,html').animate({ scrollTop: $('#file pre').height() }, 500);
}, },
get: function(data) { get: function(data) {
if (! data) if (! data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment