From: Scott Baker Date: Thu, 24 Apr 2014 03:14:16 +0000 (-0700) Subject: loading message in historical tab X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2c999f4cb4bf27bb159c84dae9853a43f2858f7e;p=plstackapi.git loading message in historical tab --- diff --git a/planetstack/templates/admin/dashboard/hpc_historical.html b/planetstack/templates/admin/dashboard/hpc_historical.html index 8f0702f..e312ee9 100644 --- a/planetstack/templates/admin/dashboard/hpc_historical.html +++ b/planetstack/templates/admin/dashboard/hpc_historical.html @@ -21,6 +21,13 @@ function updateDataSourceUrl() { var sliceName = $("#historical_slicename :selected").text(); var queryString = "/analytics/bigquery/?timeBucket=600&maxAge=86400&sum=@bytes_sent&avg=@cpu&groupBy=Time,city,@hostname,@site&slice=" + sliceName; + var loadingDiv = '
Loading ...
'; + + $( "#control1").html(""); + $( "#control2").html(""); + $( "#chart-site-agg" ).html(loadingDiv); + $( "#chart-site-time" ).html(""); + $( "#chart-geo" ).html(""); $.ajax({ url: queryString, @@ -103,22 +110,6 @@ }); geoChart.setDataTable(dt); geoChart.draw(); - -/* var histogram = new google.visualization.ChartWrapper({ - 'chartType': 'Histogram', - 'containerId': 'chart-histo', - 'options': { - 'width': 300, - 'height': 300, - }, - 'title': 'Sites by load', - 'view': { - 'columns': [1, 2] - } - }); - histogram.setDataTable(dt); - histogram.draw(); */ - } function handleResponse(response) {