From: Sapan Bhatia Date: Tue, 11 Mar 2014 21:37:41 +0000 (-0400) Subject: Fixed semicolon issues we fixed live during the demo X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1a89a076fb16172e5ceb3aa1479eff339aa80d98;p=plstackapi.git 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 @@ $(document).ready(function() { 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;