Fixed semicolon issues we fixed live during the demo
diff --git a/planetstack/core/static/main.js b/planetstack/core/static/main.js
index f6f7475..486d65a 100644
--- a/planetstack/core/static/main.js
+++ b/planetstack/core/static/main.js
@@ -48,17 +48,17 @@
whereClause = " WHERE %hostname='"+selectedNodeTxt+"'";
alert(whereClause);
} else {
- console.log('Error: Unkown object type:'+parentNodeTxt)
+ console.log('Error: Unkown object type:'+parentNodeTxt);
}
} else {
- whereClause = ''
+ whereClause = '';
}
- finalNodeQuery = encodeURIComponent(baseNodeQuery + whereClause + groupByClause)
- finalCpuQuery = encodeURIComponent(baseCpuQuery + whereClause + groupByClause)
- finalBwQuery = encodeURIComponent(baseBwQuery + whereClause + groupByClause)
- getServerData('http://cloud-scrutiny.appspot.com/command?action=send_query&legend=Node+Count&tqx=saber&q='+finalNodeQuery,'nodesLabel','nodesValue')
- getServerData('http://cloud-scrutiny.appspot.com/command?action=send_query&legend=Load&tqx=saber&q='+finalCpuQuery,'cpuLabel','cpuValue')
- getServerData('http://cloud-scrutiny.appspot.com/command?action=send_query&legend=Bandwidth&tqx=saber&q='+finalBwQuery,'bandwidthLabel','bandwidthValue')
+ finalNodeQuery = encodeURIComponent(baseNodeQuery + whereClause + groupByClause);
+ finalCpuQuery = encodeURIComponent(baseCpuQuery + whereClause + groupByClause);
+ finalBwQuery = encodeURIComponent(baseBwQuery + whereClause + groupByClause);
+ getServerData('http://cloud-scrutiny.appspot.com/command?action=send_query&legend=Node+Count&tqx=saber&q='+finalNodeQuery,'nodesLabel','nodesValue');
+ getServerData('http://cloud-scrutiny.appspot.com/command?action=send_query&legend=Load&tqx=saber&q='+finalCpuQuery,'cpuLabel','cpuValue');
+ getServerData('http://cloud-scrutiny.appspot.com/command?action=send_query&legend=Bandwidth&tqx=saber&q='+finalBwQuery,'bandwidthLabel','bandwidthValue');
$('.nodesLabel, .nodesValue').click(function() {
var jsonData = window.nodesCnt;