don't load commit logs when viewing blob

This commit is contained in:
Nihad Abbasov 2012-09-11 05:35:16 -07:00
parent 1c08cb404d
commit 5a90712645

View file

@ -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');