Commit e29c9b79329511ebfc335c87039118bd3fdcadb6

Authored by Dmitriy Zaporozhets
1 parent 52b0ceb8

slower animation for tree browsing

app/assets/javascripts/tree.js.coffee
@@ -6,7 +6,7 @@ $ -> @@ -6,7 +6,7 @@ $ ->
6 $('span.log_loading:first').removeClass('hide') 6 $('span.log_loading:first').removeClass('hide')
7 7
8 $('#tree-slider .tree-item-file-name a, .breadcrumb li > a').live "click", -> 8 $('#tree-slider .tree-item-file-name a, .breadcrumb li > a').live "click", ->
9 - $("#tree-content-holder").hide("slide", { direction: "left" }, 150) 9 + $("#tree-content-holder").hide("slide", { direction: "left" }, 400)
10 10
11 # Make the entire tree-item row clickable, but not if clicking another link (like a commit message) 11 # Make the entire tree-item row clickable, but not if clicking another link (like a commit message)
12 $("#tree-slider .tree-item").live 'click', (e) -> 12 $("#tree-slider .tree-item").live 'click', (e) ->
app/views/tree/show.js.haml
1 :plain 1 :plain
2 // Load Files list 2 // Load Files list
3 $("#tree-holder").html("#{escape_javascript(render(partial: "tree", locals: {tree: @tree}))}"); 3 $("#tree-holder").html("#{escape_javascript(render(partial: "tree", locals: {tree: @tree}))}");
4 - $("#tree-content-holder").show("slide", { direction: "right" }, 150); 4 + $("#tree-content-holder").show("slide", { direction: "right" }, 400);
5 $('.project-refs-form #path').val("#{@path}"); 5 $('.project-refs-form #path').val("#{@path}");
6 6
7 // Load last commit log for each file in tree 7 // Load last commit log for each file in tree