From ddd996af0536a83a4c187843e0d21797b2126e34 Mon Sep 17 00:00:00 2001 From: zuber Date: Thu, 15 Oct 2009 18:49:38 +0200 Subject: [PATCH 1/1] =?utf8?q?FIX:=20Poprawienie=20=C5=9Bcie=C5=BCek=20w?= =?utf8?q?=20XMLEditor,=20=C5=BCeby=20by=C5=82y=20budowane=20na=20podstawi?= =?utf8?q?e=20STATIC=5FURL.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- platforma/static/js/views/xml.js | 4 ++-- platforma/templates/explorer/editor.html | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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 }}' } -- 2.20.1