Commit 204bd0b0669c06793d3dad02b23fec258983bb81

Authored by Dmitriy Zaporozhets
2 parents f23d01b7 01817135

Merge pull request #3814 from tsl0922/fix-ace-mode-404

fix ace editor Syntax Highlighter mode load 404
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/views/edit_tree/show.html.haml
... ... @@ -30,6 +30,7 @@
30 30 = link_to "Cancel", project_tree_path(@project, @id), class: "btn btn-cancel", confirm: "Are you sure?"
31 31  
32 32 :javascript
  33 + ace.config.set("modePath", "#{Gitlab::Application.config.assets.prefix}/ace-src-noconflict")
33 34 var ace_mode = "#{@blob.language.try(:ace_mode)}";
34 35 var editor = ace.edit("editor");
35 36 if (ace_mode) {
... ...