Skip to content
Browse files

bugfix

  • Loading branch information...
1 parent 0dd6713 commit ceaa2bfbf9f7235f31767a9b6966a54d6562223a @doertehasselberg doertehasselberg committed May 6, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 public/js/main.js
View
10 public/js/main.js
@@ -51,8 +51,10 @@ var Healthety = function(){
// write legend
$('#legend').html('');
- for(var i in hosts.sort()){
- $('#legend').append('<span style="color:'+ colors[i] +'">'+ hosts[i] +'</span>')
+ for(var i in hosts){
+ $('#legend').append(
+ '<span style="color:'+ colors[i] +'">'+ hosts[i] +'</span>'
+ );
}
}, 500);
@@ -69,7 +71,9 @@ var Healthety = function(){
}
function initChart(json){
- if(hosts.indexOf(json.host) == -1) hosts.push(json.host);
+ if(hosts.indexOf(json.host) == -1) {
+ hosts.push(json.host);
+ }
var widget = json.name.replace(/_/, ' ');
// Check if host is already known.

0 comments on commit ceaa2bf

Please sign in to comment.
Something went wrong with that request. Please try again.