fix ace mode 404
This commit is contained in:
parent
ae006dd90b
commit
01817135e9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue