Commit 08be25eb4b9e618dcc65a0ffaea5bf0c63dc8a65

Authored by Dmitriy Zaporozhets
2 parents e67574fe a38c6550

Merge pull request #4826 from amouhzi/patch-1

Fix bug in ace-src-noconflict with Relative url.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/projects/edit_tree/show.html.haml
... ... @@ -31,7 +31,7 @@
31 31 = link_to "Cancel", project_blob_path(@project, @id), class: "btn btn-cancel", confirm: leave_edit_message
32 32  
33 33 :javascript
34   - ace.config.set("modePath", "#{Gitlab::Application.config.assets.prefix}/ace-src-noconflict")
  34 + ace.config.set("modePath", gon.relative_url_root + "#{Gitlab::Application.config.assets.prefix}/ace-src-noconflict")
35 35 var ace_mode = "#{@blob.language.try(:ace_mode)}";
36 36 var editor = ace.edit("editor");
37 37 if (ace_mode) {
... ...