summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-03 03:55:20 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-03 03:55:20 -0700
commit204bd0b0669c06793d3dad02b23fec258983bb81 (patch)
treeee70625ea01d61ff9b1a4b06a69264448d1df46b
parentf23d01b7897068fa424c3ac87f089d2aa3e8627e (diff)
parent01817135e944ade092c35399409fe995b0c6152f (diff)
downloadgitlab-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.haml1
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) {