mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-12 10:45:14 +02:00
Reload webpage after container restart
This commit is contained in:
parent
b383391e2c
commit
edbab3633d
@ -186,6 +186,7 @@ $(document).ready(function() {
|
||||
$(this).prop("disabled",true);
|
||||
$(this).html('<span class="glyphicon glyphicon-refresh glyphicon-spin"></span> ');
|
||||
$('#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('<span class="glyphicon glyphicon-ok"></span> ');
|
||||
$('#statusTriggerRestartContainer2').append(data);
|
||||
$('#triggerRestartContainer').html('<span class="glyphicon glyphicon-ok"></span> ');
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user