From 04cc466ea252b573fabcf1dea0bc8e90d6a0e29d Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Wed, 15 Nov 2017 17:58:18 +0800 Subject: [PATCH] temp. --- server/www/teleport/static/js/maintenance/install.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/www/teleport/static/js/maintenance/install.js b/server/www/teleport/static/js/maintenance/install.js index 7ed5f4a..26c41b7 100644 --- a/server/www/teleport/static/js/maintenance/install.js +++ b/server/www/teleport/static/js/maintenance/install.js @@ -161,6 +161,7 @@ $app.on_init = function (cb_stack, cb_args) { html.push('

') } $app.dom.steps_detail.html(html.join('')); + $('html').animate({scrollTop: $(document).height()}, 300); if (!ret.data.running) { if (all_ok) { @@ -174,7 +175,7 @@ $app.on_init = function (cb_stack, cb_args) { $app.dom.step2.show('fast', function () { // 确保页面滚动到最低端,使得下一步提示能够被看到。 - document.body.scrollTop = document.body.scrollHeight; + $('html').animate({scrollTop: $(document).height()}, 300); }); } return;