Commit 9fb595eb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #1440 from NARKOZ/patch-tree

don't load commit logs when viewing blob
parents 1c08cb40 5a907126
...@@ -50,12 +50,13 @@ ...@@ -50,12 +50,13 @@
history.pushState({ path: this.path }, '', "#{@history_path}"); history.pushState({ path: this.path }, '', "#{@history_path}");
}); });
- unless tree.is_blob?
:javascript
// Load last commit log for each file in tree // Load last commit log for each file in tree
$(window).load(function(){ $(window).load(function(){
ajaxGet('#{@logs_path}'); ajaxGet('#{@logs_path}');
}); });
- if params[:path] && request.xhr? - if params[:path] && request.xhr?
:javascript :javascript
$(window).unbind('popstate'); $(window).unbind('popstate');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment