Commit 5a9071264576e672da998d6d346bc5200ae91153

Authored by Nihad Abbasov
1 parent 1c08cb40

don't load commit logs when viewing blob

Showing 1 changed file with 6 additions and 5 deletions   Show diff stats
app/views/refs/_tree.html.haml
... ... @@ -50,11 +50,12 @@
50 50 history.pushState({ path: this.path }, '', "#{@history_path}");
51 51 });
52 52  
53   - // Load last commit log for each file in tree
54   - $(window).load(function(){
55   - ajaxGet('#{@logs_path}');
56   - });
57   -
  53 +- unless tree.is_blob?
  54 + :javascript
  55 + // Load last commit log for each file in tree
  56 + $(window).load(function(){
  57 + ajaxGet('#{@logs_path}');
  58 + });
58 59  
59 60 - if params[:path] && request.xhr?
60 61 :javascript
... ...