Skip to content
Snippets Groups Projects
Commit 5a907126 authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

don't load commit logs when viewing blob

parent 1c08cb40
No related branches found
No related tags found
1 merge request!1440don't load commit logs when viewing blob
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment