From: zuber Date: Tue, 5 Jan 2010 00:35:28 +0000 (+0100) Subject: Poprawienie urli w JS. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/351e2a633425b85d99a284b8836f375f81cc8dce?ds=inline Poprawienie urli w JS. --- 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 %} +