From 3dc486993eb120d2b0cef4a79bee83db04d761fb Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 31 Dec 2016 23:05:52 +0100 Subject: [PATCH] Show a spinner when SOGo restarts --- data/web/inc/footer.inc.php | 2 ++ data/web/inc/header.inc.php | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index e9a8a18d..052f03b2 100644 --- a/data/web/inc/footer.inc.php +++ b/data/web/inc/footer.inc.php @@ -85,6 +85,7 @@ $(document).ready(function() { // Trigger SOGo restart $('#triggerRestartSogo').click(function(){ $(this).prop("disabled",true); + $(this).html(' '); $('#statusTriggerRestartSogo').text('Stopping SOGo workers, this may take a while... '); $.ajax({ method: 'get', @@ -105,6 +106,7 @@ $(document).ready(function() { }, success: function(data) { $('#statusTriggerRestartSogo').append(data); + $('#triggerRestartSogo').html(' '); } }); } diff --git a/data/web/inc/header.inc.php b/data/web/inc/header.inc.php index 190e5418..2059f0e6 100644 --- a/data/web/inc/header.inc.php +++ b/data/web/inc/header.inc.php @@ -119,6 +119,30 @@ table[data-sortable].sortable-theme-bootstrap.sortable-theme-bootstrap-striped t background-color: #fafafa; border:1px solid white; } +.glyphicon-spin { + -webkit-animation: spin 1000ms infinite linear; + animation: spin 1000ms infinite linear; +} +@-webkit-keyframes spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +@keyframes spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +}