From: zuber Date: Thu, 15 Oct 2009 16:49:38 +0000 (+0200) Subject: FIX: Poprawienie ścieżek w XMLEditor, żeby były budowane na podstawie STATIC_URL. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/ddd996af0536a83a4c187843e0d21797b2126e34?ds=sidebyside;hp=2b2616f63a30d16e6b6b3c1ee19928cbfd0d4013 FIX: Poprawienie ścieżek w XMLEditor, żeby były budowane na podstawie STATIC_URL. --- diff --git a/platforma/static/js/views/xml.js b/platforma/static/js/views/xml.js index 5c184321..6f0b6fa6 100644 --- a/platforma/static/js/views/xml.js +++ b/platforma/static/js/views/xml.js @@ -29,8 +29,8 @@ var XMLView = View.extend({ this.editor = new CodeMirror($('.xmlview', this.element).get(0), { parserfile: 'parsexml.js', - path: "/static/js/lib/codemirror/", - stylesheet: "/static/css/xmlcolors.css", + path: documentInfo.staticURL + "js/lib/codemirror/", + stylesheet: documentInfo.staticURL + "css/xmlcolors.css", parserConfig: { useHTMLKludges: false }, diff --git a/platforma/templates/explorer/editor.html b/platforma/templates/explorer/editor.html index 576a7939..daa1b9e8 100644 --- a/platforma/templates/explorer/editor.html +++ b/platforma/templates/explorer/editor.html @@ -12,7 +12,8 @@ userID: '{{ euser }}', docURL: '{% url document_view fileid %}{% if euser %}?user={{ euser|urlencode }}{% endif %}', toolbarURL: '{% url toolbar_buttons %}', - renderURL: '{% url api.views.render %}' + renderURL: '{% url api.views.render %}', + staticURL: '{{ STATIC_URL }}' }