don't load commit logs when viewing blob
This commit is contained in:
parent
1c08cb404d
commit
5a90712645
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue