Add render_tree helper; simplify (speed up) tree_icon

This commit is contained in:
Robert Speicher 2012-10-03 18:40:56 -04:00
parent a8fad4ff9c
commit 388d72e6bf
6 changed files with 44 additions and 41 deletions

View file

@ -1,6 +1,6 @@
:plain
// Load Files list
$("#tree-holder").html("#{escape_javascript(render(partial: "tree", locals: {commit: @commit, tree: @tree}))}");
$("#tree-holder").html("#{escape_javascript(render(partial: "tree", locals: {tree: @tree}))}");
$("#tree-content-holder").show("slide", { direction: "right" }, 150);
$('.project-refs-form #path').val("#{@path}");