소스 검색

[spark] Fix Ace editor basePath for static files

Enrico Berti 10 년 전
부모
커밋
059f81c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      apps/spark/src/spark/templates/editor_components.mako

+ 2 - 0
apps/spark/src/spark/templates/editor_components.mako

@@ -866,6 +866,8 @@ from desktop.views import _ko
 <%def name="commonJS()">
 <script type="text/javascript" charset="utf-8">
 
+  ace.config.set("basePath", "/static/desktop/js/ace");
+
   $.scrollbarWidth = function() {
     var _parent, _child, _width;
     _parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body');