1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-31 21:17:23 +02:00

Add Mail-in-a-Box version status check.

This commit is contained in:
Norman Stanke
2015-07-25 13:47:10 +02:00
parent 8c066764d9
commit c1c1d67bc9
6 changed files with 55 additions and 58 deletions

View File

@@ -35,7 +35,6 @@
white-space: pre-wrap;
}
</style>
<table id="system-checks" class="table" style="max-width: 60em">
<thead>
</thead>
@@ -43,6 +42,10 @@
</tbody>
</table>
<h4>Privacy Setting</h4>
<p>By deactivating the adavanced privacy feature your Mail-in-a-Box will contact a remote server to check if a new version got released.</p>
<p>Advanced Privacy <a onclick="enable_privacy()" href="">On</a> | <a onclick="disable_privacy()" href="">Off</a></p>
<script>
function show_system_status() {
$('#system-checks tbody').html("<tr><td colspan='2' class='text-muted'>Loading...</td></tr>")
@@ -83,4 +86,16 @@ function show_system_status() {
}
})
}
function enable_privacy() {
api(
"/system/privacy/enable",
"Post",
{ });
}
function disable_privacy() {
api(
"/system/privacy/disable",
"Post",
{ });
}
</script>