Commit 2a1b1adb authored by Robert Lyon's avatar Robert Lyon
Browse files

Allowing page to scroll to end on install



Change-Id: I40de5ba485eb3b10da1bf8565835d744e56a2c26
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent abc25e8a
......@@ -139,10 +139,8 @@ foreach ($upgrades as $key => $upgrade) {
$js = <<< EOJS
function processNext() {
var element = todo.shift();
if (!element) {
$('finished').style.visibility = 'visible';
window.scrollTo(0, 5000000);
jQuery('html, body').animate({ scrollTop: jQuery('#installdone').offset().top }, 'slow');
return; // done
}
......
......@@ -28,6 +28,6 @@
{/foreach}
</tbody>
</table>
<div id="" class="nojs-hidden-block panel-body">{str section=admin tag=successfullyinstalled} <a href="{$WWWROOT}admin/upgrade.php?finished=1">{str section=admin tag=continue}</a></div>
<div id="installdone" class="nojs-hidden-block panel-body">{str section=admin tag=successfullyinstalled} <a href="{$WWWROOT}admin/upgrade.php?finished=1">{str section=admin tag=continue}</a></div>
</div>
{include file='admin/upgradefooter.tpl'}
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