From 01817135e944ade092c35399409fe995b0c6152f Mon Sep 17 00:00:00 2001 From: tsl0922 Date: Fri, 3 May 2013 18:09:57 +0800 Subject: [PATCH] fix ace mode 404 --- app/views/edit_tree/show.html.haml | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/views/edit_tree/show.html.haml b/app/views/edit_tree/show.html.haml index e7bdeb3..5092054 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) { -- libgit2 0.21.2