fixed tree view
This commit is contained in:
parent
a77c8bf9c3
commit
97e9774336
|
@ -5,21 +5,21 @@
|
||||||
var Tree = {
|
var Tree = {
|
||||||
init:
|
init:
|
||||||
function() {
|
function() {
|
||||||
(new Image).src = "ajax-loader-facebook.gif";
|
(new Image).src = "/assets/ajax-loader-facebook.gif";
|
||||||
|
|
||||||
$('#tree-slider td.tree-item-file-name a, #tree-breadcrumbs a').live("click", function() {
|
$('#tree-slider .tree-item-file-name a, .breadcrumb a').live("click", function() {
|
||||||
history.pushState({ path: this.path }, '', this.href)
|
history.pushState({ path: this.path }, '', this.href)
|
||||||
$("#tree-content-holder").hide("slide", { direction: "left" }, 150)
|
$("#tree-content-holder").hide("slide", { direction: "left" }, 150)
|
||||||
})
|
})
|
||||||
|
|
||||||
$("#tree-slider tr.tree-item").live('click', function(e){
|
$("#tree-slider .tree-item").live('click', function(e){
|
||||||
if(e.target.nodeName != "A") {
|
if(e.target.nodeName != "A") {
|
||||||
link = $(this).find("td.tree-item-file-name a");
|
link = $(this).find(".tree-item-file-name a");
|
||||||
link.trigger("click");
|
link.trigger("click");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#tree-slider td.tree-item-file-name a, #tree-breadcrumbs a').live({
|
$('#tree-slider td.tree-item-file-name a, .breadcrumb a').live({
|
||||||
"ajax:beforeSend": function() { $('.tree_progress').addClass("loading"); },
|
"ajax:beforeSend": function() { $('.tree_progress').addClass("loading"); },
|
||||||
"ajax:complete": function() { $('.tree_progress').removeClass("loading"); }
|
"ajax:complete": function() { $('.tree_progress').removeClass("loading"); }
|
||||||
});
|
});
|
||||||
|
|
|
@ -122,5 +122,10 @@ table.highlighttable .linenodiv pre {
|
||||||
|
|
||||||
.tree-item-file-name {
|
.tree-item-file-name {
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
|
|
||||||
|
img {
|
||||||
|
position: relative;
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue