diff options
author | tsl0922 <tsl0922@gmail.com> | 2013-05-03 18:09:57 +0800 |
---|---|---|
committer | tsl0922 <tsl0922@gmail.com> | 2013-05-03 18:09:57 +0800 |
commit | 01817135e944ade092c35399409fe995b0c6152f (patch) | |
tree | 4019fab5689f2c43ee5b978145e195b809e8a870 | |
parent | ae006dd90ba635c1c7ee7c5c56b5570bb50a3f83 (diff) | |
download | gitlab-ce-01817135e944ade092c35399409fe995b0c6152f.tar.gz |
fix ace mode 404
-rw-r--r-- | app/views/edit_tree/show.html.haml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/edit_tree/show.html.haml b/app/views/edit_tree/show.html.haml index e7bdeb39e72..509205436ea 100644 --- a/app/views/edit_tree/show.html.haml +++ b/app/views/edit_tree/show.html.haml @@ -30,6 +30,7 @@ = link_to "Cancel", project_tree_path(@project, @id), class: "btn btn-cancel", confirm: "Are you sure?" :javascript + ace.config.set("modePath", "#{Gitlab::Application.config.assets.prefix}/ace-src-noconflict") var ace_mode = "#{@blob.language.try(:ace_mode)}"; var editor = ace.edit("editor"); if (ace_mode) { |