diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-07-25 12:48:45 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-07-27 15:03:04 +0200 |
commit | 57d2db4c0730a75c4ac932adc3613949550a0279 (patch) | |
tree | a1d2e6693d3dd73a970b9dda0a110b3b55c9fc5b /app/views/projects/tree | |
parent | 84a3ab25fe9dd9002c8c47976d7f17fc2a897071 (diff) | |
download | gitlab-ce-57d2db4c0730a75c4ac932adc3613949550a0279.tar.gz |
TreeContent moved to external JS
Diffstat (limited to 'app/views/projects/tree')
-rw-r--r-- | app/views/projects/tree/_tree_content.html.haml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/projects/tree/_tree_content.html.haml b/app/views/projects/tree/_tree_content.html.haml index 6560bd5ab3f..bdd1623c075 100644 --- a/app/views/projects/tree/_tree_content.html.haml +++ b/app/views/projects/tree/_tree_content.html.haml @@ -1,4 +1,4 @@ -.tree-content-holder +.tree-content-holder.js-tree-content{ 'data-logs-path': escape_javascript(@logs_path)} .table-holder %table.table#tree-slider{ class: "table_#{@hex_path} tree-table" } %thead @@ -22,9 +22,3 @@ - if can_edit_tree? = render 'projects/blob/upload', title: _('Upload New File'), placeholder: _('Upload New File'), button_title: _('Upload file'), form_path: project_create_blob_path(@project, @id), method: :post = render 'projects/blob/new_dir' - -:javascript - // Load last commit log for each file in tree - $('#tree-slider').waitForImages(function() { - gl.utils.ajaxGet("#{escape_javascript(@logs_path)}"); - }); |