diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-29 14:45:51 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-29 14:45:51 +0400 |
commit | 97e9774336c1de54d2734304dcb94511682f6613 (patch) | |
tree | c694a4407d6a74e077627fc6704912d210cc687b /app | |
parent | a77c8bf9c3635393064490e752aa99f10bf32722 (diff) |
fixed tree view
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/tree.js | 10 | ||||
-rw-r--r-- | app/assets/stylesheets/tree.scss | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/app/assets/javascripts/tree.js b/app/assets/javascripts/tree.js index 2e9bcc82a2b..3b47f81c223 100644 --- a/app/assets/javascripts/tree.js +++ b/app/assets/javascripts/tree.js @@ -5,21 +5,21 @@ var Tree = { init: 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) $("#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") { - link = $(this).find("td.tree-item-file-name a"); + link = $(this).find(".tree-item-file-name a"); 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:complete": function() { $('.tree_progress').removeClass("loading"); } }); diff --git a/app/assets/stylesheets/tree.scss b/app/assets/stylesheets/tree.scss index c86add61189..47024a6f009 100644 --- a/app/assets/stylesheets/tree.scss +++ b/app/assets/stylesheets/tree.scss @@ -122,5 +122,10 @@ table.highlighttable .linenodiv pre { .tree-item-file-name { font-weight:bold; + + img { + position: relative; + top: 2px; + } } } |