Browse Source

Reload webpage after container restart

Phoenix Eve Aspacio 7 years ago
parent
commit
edbab3633d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      data/web/inc/footer.inc.php

+ 4 - 0
data/web/inc/footer.inc.php

@@ -186,6 +186,7 @@ $(document).ready(function() {
       $(this).prop("disabled",true);
       $(this).prop("disabled",true);
       $(this).html('<span class="glyphicon glyphicon-refresh glyphicon-spin"></span> ');
       $(this).html('<span class="glyphicon glyphicon-refresh glyphicon-spin"></span> ');
       $('#statusTriggerRestartContainer').text('Restarting container, this may take a while... ');
       $('#statusTriggerRestartContainer').text('Restarting container, this may take a while... ');
+      $('#statusTriggerRestartContainer2').text('Reloading webpage... ');
       $.ajax({
       $.ajax({
         method: 'get',
         method: 'get',
         url: '/inc/ajax/container_ctrl.php',
         url: '/inc/ajax/container_ctrl.php',
@@ -200,6 +201,9 @@ $(document).ready(function() {
         success: function(data) {
         success: function(data) {
           $('#statusTriggerRestartContainer').append(data);
           $('#statusTriggerRestartContainer').append(data);
           $('#triggerRestartContainer').html('<span class="glyphicon glyphicon-ok"></span> ');
           $('#triggerRestartContainer').html('<span class="glyphicon glyphicon-ok"></span> ');
+          $('#statusTriggerRestartContainer2').append(data);
+          $('#triggerRestartContainer').html('<span class="glyphicon glyphicon-ok"></span> ');
+          location.reload();
         }
         }
       });
       });
     });
     });