diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-03 03:55:20 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-03 03:55:20 -0700 |
commit | 204bd0b0669c06793d3dad02b23fec258983bb81 (patch) | |
tree | ee70625ea01d61ff9b1a4b06a69264448d1df46b | |
parent | f23d01b7897068fa424c3ac87f089d2aa3e8627e (diff) | |
parent | 01817135e944ade092c35399409fe995b0c6152f (diff) | |
download | gitlab-ce-204bd0b0669c06793d3dad02b23fec258983bb81.tar.gz |
Merge pull request #3814 from tsl0922/fix-ace-mode-404
fix ace editor Syntax Highlighter mode load 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) { |