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 6 $('span.log_loading:first').removeClass('hide')
7 7  
8 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 11 # Make the entire tree-item row clickable, but not if clicking another link (like a commit message)
12 12 $("#tree-slider .tree-item").live 'click', (e) ->
... ...
app/views/tree/show.js.haml
1 1 :plain
2 2 // Load Files list
3 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 5 $('.project-refs-form #path').val("#{@path}");
6 6  
7 7 // Load last commit log for each file in tree
... ...