From edbab3633d05a3e2fa145fe60d46e924b5c011e9 Mon Sep 17 00:00:00 2001 From: Phoenix Eve Aspacio Date: Tue, 16 Jan 2018 22:05:42 +0800 Subject: [PATCH 1/2] 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(); } }); }); From 2f60b4068498d9ac5f39f5273dcb908b10433257 Mon Sep 17 00:00:00 2001 From: Phoenix Eve Aspacio Date: Tue, 16 Jan 2018 22:06:49 +0800 Subject: [PATCH 2/2] Reload webpage after container restart --- data/web/modals/footer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/data/web/modals/footer.php b/data/web/modals/footer.php index e861ab4e..05ae74b3 100644 --- a/data/web/modals/footer.php +++ b/data/web/modals/footer.php @@ -196,6 +196,7 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admi

+