From 5a9071264576e672da998d6d346bc5200ae91153 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Tue, 11 Sep 2012 05:35:16 -0700 Subject: [PATCH] don't load commit logs when viewing blob --- app/views/refs/_tree.html.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/refs/_tree.html.haml b/app/views/refs/_tree.html.haml index 83e73280666..ec6dba4ee07 100644 --- a/app/views/refs/_tree.html.haml +++ b/app/views/refs/_tree.html.haml @@ -50,11 +50,12 @@ history.pushState({ path: this.path }, '', "#{@history_path}"); }); - // Load last commit log for each file in tree - $(window).load(function(){ - ajaxGet('#{@logs_path}'); - }); - +- unless tree.is_blob? + :javascript + // Load last commit log for each file in tree + $(window).load(function(){ + ajaxGet('#{@logs_path}'); + }); - if params[:path] && request.xhr? :javascript