Tree ajax log. progress bar & refactoring

This commit is contained in:
Dmitriy Zaporozhets 2012-07-10 23:12:38 +03:00
parent 1a2bacfb4b
commit f88a2617e6
8 changed files with 53 additions and 18 deletions

View file

@ -1,9 +1,10 @@
:plain
// Load Files list
$("#tree-holder").html("#{escape_javascript(render(:partial => "tree", :locals => {:repo => @repo, :commit => @commit, :tree => @tree}))}");
$("#tree-content-holder").show("slide", { direction: "right" }, 150);
$('.project-refs-form #path').val("#{params[:path]}");
// Load last commit log for each file in tree
$('#tree-slider').waitForImages(function() {
$.ajax({type: "GET", url: '#{@logs_path}', dataType: "script"});
ajaxGet('#{@logs_path}');
});