From 351e2a633425b85d99a284b8836f375f81cc8dce Mon Sep 17 00:00:00 2001 From: zuber Date: Tue, 5 Jan 2010 01:35:28 +0100 Subject: [PATCH 1/1] Poprawienie urli w JS. --- platforma/static/js/main.js | 2 +- platforma/static/js/xslt.js | 4 ++-- platforma/templates/wiki/document_details.html | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 7b204584..ddbe756b 100644 --- a/platforma/static/js/main.js +++ b/platforma/static/js/main.js @@ -94,7 +94,7 @@ function gallery(element, url) { zoom(); }); $('.change-gallery', element).click(function() { - $('.chosen-gallery').val($('#document-meta .gallery').html() || '/gallery/'); + $('.chosen-gallery').val($('#document-meta .gallery').html() || STATIC_URL + 'gallery/'); $('.gallery-image').animate({top: 53}, 200); $('.chosen-gallery').focus(); }); diff --git a/platforma/static/js/xslt.js b/platforma/static/js/xslt.js index 7397d349..e098a7d9 100644 --- a/platforma/static/js/xslt.js +++ b/platforma/static/js/xslt.js @@ -132,12 +132,12 @@ function withStylesheets(block, onError) { } $.blockUI({message: 'Ładowanie arkuszy stylów...'}); $.ajax({ - url: '/static/xsl/wl2html_client.xsl', + url: STATIC_URL + 'xsl/wl2html_client.xsl', dataType: 'xml', success: function(data) { xml2htmlStylesheet = createXSLT(data); $.ajax({ - url: '/static/xsl/html2wl_client.xsl', + url: STATIC_URL + 'xsl/html2wl_client.xsl', dataType: 'xml', success: function(data) { html2xmlStylesheet = createXSLT(data); diff --git a/platforma/templates/wiki/document_details.html b/platforma/templates/wiki/document_details.html index 5aac2e69..752f4f24 100644 --- a/platforma/templates/wiki/document_details.html +++ b/platforma/templates/wiki/document_details.html @@ -4,6 +4,9 @@ {% block extrahead %} + -- 2.20.1