Explorar o código

[spark] Fix Ace editor basePath for static files

Enrico Berti %!s(int64=10) %!d(string=hai) anos
pai
achega
059f81c485
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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()">
 <%def name="commonJS()">
 <script type="text/javascript" charset="utf-8">
 <script type="text/javascript" charset="utf-8">
 
 
+  ace.config.set("basePath", "/static/desktop/js/ace");
+
   $.scrollbarWidth = function() {
   $.scrollbarWidth = function() {
     var _parent, _child, _width;
     var _parent, _child, _width;
     _parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body');
     _parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body');