Show a spinner when SOGo restarts

This commit is contained in:
andryyy
2016-12-31 23:05:52 +01:00
parent 6d24f582b6
commit 3dc486993e
2 changed files with 26 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ $(document).ready(function() {
// Trigger SOGo restart
$('#triggerRestartSogo').click(function(){
$(this).prop("disabled",true);
$(this).html('<span class="glyphicon glyphicon-refresh glyphicon-spin"></span> ');
$('#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('<span class="glyphicon glyphicon-ok"></span> ');
}
});
}