summaryrefslogtreecommitdiff
path: root/app/views/projects/find_file/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/find_file/show.html.haml')
-rw-r--r--app/views/projects/find_file/show.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/projects/find_file/show.html.haml b/app/views/projects/find_file/show.html.haml
index 2930209fb56..40a2a61d8a1 100644
--- a/app/views/projects/find_file/show.html.haml
+++ b/app/views/projects/find_file/show.html.haml
@@ -18,10 +18,10 @@
%tbody
= spinner nil, true
-:coffeescript
- projectFindFile = new ProjectFindFile($(".file-finder-holder"), {
- url: "#{escape_javascript(namespace_project_files_path(@project.namespace, @project, @ref, @options.merge(format: :json)))}"
- treeUrl: "#{escape_javascript(namespace_project_tree_path(@project.namespace, @project, @ref))}"
+:javascript
+ var projectFindFile = new ProjectFindFile($(".file-finder-holder"), {
+ url: "#{escape_javascript(namespace_project_files_path(@project.namespace, @project, @ref, @options.merge(format: :json)))}",
+ treeUrl: "#{escape_javascript(namespace_project_tree_path(@project.namespace, @project, @ref))}",
blobUrlTemplate: "#{escape_javascript(namespace_project_blob_path(@project.namespace, @project, @id || @commit.id))}"
- })
- new ShortcutsFindFile(projectFindFile)
+ });
+ new ShortcutsFindFile(projectFindFile);