Commit 08e04bad authored by Ad Schellevis's avatar Ad Schellevis

(systemhealth) move loading animation to panel-title

parent 3a0fdb66
...@@ -288,6 +288,7 @@ ...@@ -288,6 +288,7 @@
// info bar - hide averages info bar while refreshing data // info bar - hide averages info bar while refreshing data
$('#averages').hide(); $('#averages').hide();
$('#chart_title').hide();
// info bar - show loading info bar while refreshing data // info bar - show loading info bar while refreshing data
$('#loading').show(); $('#loading').show();
// API call to request data // API call to request data
...@@ -488,6 +489,7 @@ ...@@ -488,6 +489,7 @@
fetching_data = false; fetching_data = false;
$('#loading').hide(); // Data has been found and chart will be drawn $('#loading').hide(); // Data has been found and chart will be drawn
$('#averages').show(); $('#averages').show();
$('#chart_title').show();
if (data["title"]!="") { if (data["title"]!="") {
$('#chart_title').show(); $('#chart_title').show();
$('#chart_title').text(data["title"]); $('#chart_title').text(data["title"]);
...@@ -646,16 +648,16 @@ ...@@ -646,16 +648,16 @@
</div> </div>
<div id="loading" class="alert bg-primary"><i class="fa fa-spinner fa-spin"></i>
<b>{{ lang._('Please wait while loading data...') }}</b>
</div>
<!--<div id="stepsize"></div>--> <!--<div id="stepsize"></div>-->
<!-- place holder for the chart itself --> <!-- place holder for the chart itself -->
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title"> <h3 class="panel-title">
<span id="loading">
<i id="loading" class="fa fa-spinner fa-spin"></i>
<b>{{ lang._('Please wait while loading data...') }}</b>
</span>
<span id="chart_title"> </span> <span id="chart_title"> </span>
<span id="averages"> <span id="averages">
<small> <small>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment