Permalink
Browse files

Clean up javascript

  • Loading branch information...
1 parent 60e06ee commit 5d804c7abf6afdf9622baaa1983c9d9f1b35b47c @kshep committed May 5, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 public/javascripts/application.js
@@ -43,8 +43,13 @@ function draw_tree() {
$('#graph_wrapper').empty();
for (var i in selKeys) {
var div = $('<div>');
- div.append($('<div>').text(selKeys[i]).attr('class','graph_title'));
- div.append($('<div>').attr('id','graph'+i).attr('class','graph'));
+ div.append($('<div>')
+ .attr('class','graph_title'))
+ .text(selKeys[i]);
+ div.append($('<div>')
+ .attr('id','graph'+i)
+ .attr('class','graph')
+ );
$('#graph_wrapper').append(div);
draw_graph('#graph'+i, selKeys[i]);
}

0 comments on commit 5d804c7

Please sign in to comment.