fixed image preview
This commit is contained in:
parent
42ba6d04f8
commit
6a2c7d80cb
|
@ -469,3 +469,5 @@ body.project-page table.no-borders td{
|
||||||
padding:40px;
|
padding:40px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tree-content-holder { float:left; width:100%; }
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
class Tree
|
class Tree
|
||||||
|
include Utils::FileHelper
|
||||||
attr_accessor :path, :tree, :project, :ref
|
attr_accessor :path, :tree, :project, :ref
|
||||||
|
|
||||||
delegate :contents,
|
delegate :contents,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
:plain
|
:plain
|
||||||
$("#tree-holder table").hide("slide", { direction: "left" }, 150, function(){
|
$("#tree-content-holder").hide("slide", { direction: "left" }, 150, function(){
|
||||||
$("#tree-holder").html("#{escape_javascript(render(:partial => "tree", :locals => {:repo => @repo, :commit => @commit, :tree => @tree}))}");
|
$("#tree-holder").html("#{escape_javascript(render(:partial => "tree", :locals => {:repo => @repo, :commit => @commit, :tree => @tree}))}");
|
||||||
$("#tree-holder table").show("slide", { direction: "right" }, 150);
|
$("#tree-content-holder").show("slide", { direction: "right" }, 150);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue