diff --git a/php/public/automatic_reload.js b/php/public/automatic_reload.js new file mode 100644 index 00000000..066a46c3 --- /dev/null +++ b/php/public/automatic_reload.js @@ -0,0 +1,13 @@ +if (document.hasFocus()) { + // hide reload button if the site reloads automatically + var list = document.getElementsByClassName("reload button"); + for (var i = 0; i < list.length; i++) { + // list[i] is a node with the desired class name + list[i].style.display = 'none'; + } + + // set timeout for reload + setTimeout(function(){ + window.location.reload(1); + }, 5000); +} \ No newline at end of file diff --git a/php/templates/containers.twig b/php/templates/containers.twig index 2cfe391b..e5ca4db0 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -249,7 +249,7 @@ {% endif %} {% endif %} - {% if isBackupOrRestoreRunning == false %} + {% if isBackupContainerRunning == false %}