From edbab3633d05a3e2fa145fe60d46e924b5c011e9 Mon Sep 17 00:00:00 2001 From: Phoenix Eve Aspacio Date: Tue, 16 Jan 2018 22:05:42 +0800 Subject: [PATCH] Reload webpage after container restart --- data/web/inc/footer.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index d7bb4353..eac175e4 100644 --- a/data/web/inc/footer.inc.php +++ b/data/web/inc/footer.inc.php @@ -186,6 +186,7 @@ $(document).ready(function() { $(this).prop("disabled",true); $(this).html(' '); $('#statusTriggerRestartContainer').text('Restarting container, this may take a while... '); + $('#statusTriggerRestartContainer2').text('Reloading webpage... '); $.ajax({ method: 'get', url: '/inc/ajax/container_ctrl.php', @@ -200,6 +201,9 @@ $(document).ready(function() { success: function(data) { $('#statusTriggerRestartContainer').append(data); $('#triggerRestartContainer').html(' '); + $('#statusTriggerRestartContainer2').append(data); + $('#triggerRestartContainer').html(' '); + location.reload(); } }); });