Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Lee <huacnlee@gmail.com>2016-01-11 06:01:15 +0300
committerJason Lee <huacnlee@gmail.com>2016-01-11 06:01:15 +0300
commita789dcaeb3958cf7b2f74d394b646f34297ff3a1 (patch)
treee72e5980987679199927180ae68f27012a7abdc8 /app/views/projects/find_file
parent70cba8e9a833b6a5ae4d916ce50c394868de8116 (diff)
use JavaScript instead of CoffeeScript in Views, the reason #9819
Diffstat (limited to 'app/views/projects/find_file')
-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);