DRY up Blame, Blob and Tree controllers

This commit is contained in:
Robert Speicher 2012-09-17 14:24:31 -04:00
parent 576cec6c67
commit 398ba6f1bb
6 changed files with 38 additions and 73 deletions

View file

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