Skip to content

Commit

Permalink
Update data url so console works with new nodeload
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjlee committed Dec 2, 2010
1 parent 63cb997 commit cbf01f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion console/js/console.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getTests(nodeId) {
}
function refreshReportsData(node) {
if (!node) return;
$.getJSON('http://' + node.name + '/data/', function(data, status) {
$.getJSON('http://' + node.name + '/reports', function(data, status) {
if (data) node.reports = data;
});
}
Expand Down
3 changes: 2 additions & 1 deletion console/js/console.ui.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// UI builders and event handlers
// ----------------------------------
/*globals window document $ */

// ---------------
// UI creation
Expand Down Expand Up @@ -224,7 +225,7 @@ function refreshReportGraphs(node) {
for (var i in reports) {
// Add tabs for any new reports
var reportId = getIdFromString(i),
tab = getTabForReport(node, i, reportId);
tab = getTabForReport(node, reports[i].name, reportId);

// Add charts from report
var charts = reports[i].charts;
Expand Down

0 comments on commit cbf01f0

Please sign in to comment.