Merge pull request #919 from mailcow/master

Update base branch
master
Phoenix Eve Aspacio 2018-01-16 22:18:25 +08:00 committed by GitHub
commit d171da35de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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();
}
});
});

View File

@ -196,6 +196,7 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admi
<button class="btn btn-md btn-primary" id="triggerRestartContainer"><?= $lang['footer']['restart_now']; ?></button>
<br><br>
<div id="statusTriggerRestartContainer"></div>
<div id="statusTriggerRestartContainer2"></div>
</div>
</div>
</div>