From 6bf525f98bd47352ba3c87d304d40617fed79912 Mon Sep 17 00:00:00 2001 From: Heiner Peuser Date: Sun, 28 Feb 2016 20:27:49 +0100 Subject: [PATCH] Fixed "hi is not a function" resulting from a google chart loader update to v44 (see https://groups.google.com/forum/#!topic/google-visualization-api/tdswEASPEKA) --- html/index.html | 6 +++--- html/js/script.js | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/html/index.html b/html/index.html index d1dc488..57cb1c3 100644 --- a/html/index.html +++ b/html/index.html @@ -95,9 +95,9 @@ Developed by weweave. Source available on GitHub. - - + + - + \ No newline at end of file diff --git a/html/js/script.js b/html/js/script.js index d1fb446..d6c5d56 100644 --- a/html/js/script.js +++ b/html/js/script.js @@ -51,6 +51,7 @@ }; var renderChart = function(elementId, containerId, chart) { + console.log('Rendering chart '+chart+' for container ' + containerId); var url; if (containerId) { url = './rs/container/'+containerId+'/'+chart+'/'+zoom; @@ -75,6 +76,7 @@ }; var renderContainerStats = function(id) { + console.log('Rendering stats for container ' + id); renderLatestStats(id); renderChart('mem-chart', id, 'mem'); renderChart('net-in-chart', id, 'net_in'); @@ -92,6 +94,7 @@ }; var renderAllContainerStats = function() { + console.log('Rendering all container stats'); renderChart('mem-chart', null, 'mem'); renderChart('net-in-chart', null, 'net_in'); renderChart('net-out-chart', null, 'net_out'); @@ -124,7 +127,7 @@ list.append(tr); }; - var loadContainerList = function() { + var loadContainerList = function(cb) { $.get('./rs/containers/get', function(data) { var list = $('#container-list > tbody'); for (var i=0; i