Fixed auto-refresh

Fixes #772.
This commit is contained in:
TimZ99 2019-09-25 23:02:53 +02:00
parent d62df0b34e
commit 5d668b7882
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@
{% endfor %}
<div class="container">
<div class="row">{{ html_sidebar|raw }}</div>
<div class="row">{{ html_content|raw }}</div>
<div class="row" id="content">{{ html_content|raw }}</div>
</div>
</main>
{% if add_footer %}

View File

@ -39,7 +39,7 @@
<!-- Language -->
{{ macro.input_select("language", "language", label_language, languages, language_current) }}
<!-- Auto refresh -->
{{ macro.input_field("text", "auto_refresh", null, "auto_refresh", label_auto_refresh, auto_refresh, "0", "10", "auto_refresh_help", null, label_seconds) }}
{{ macro.input_field("number", "auto_refresh_servers", null, "auto_refresh_servers", label_auto_refresh, auto_refresh_servers, "0", "10", "auto_refresh_help", null, label_seconds) }}
<!-- Password encryption key -->
<!-- TODO how does the encryption function works currently? -->
{{ macro.input_field("text", "password_encrypt_key", null, "password_encrypt_key", label_password_encrypt_key, password_encrypt_key, "cab03a766...", "40", "password_encrypt_key_help", label_password_encrypt_key_note) }}

View File

@ -101,7 +101,7 @@ setInterval(function() {
$.ajax({
url:"?",
success: function(html, status) {
$("#page-container").html(html);
$("#content").html(html);
}
});
}, {{ auto_refresh_seconds }} * 1000);