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();
});
}
$.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);
{% block extrahead %}
<link rel="stylesheet" href="{{STATIC_URL}}css/master.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="{{STATIC_URL}}css/html.css" type="text/css" media="screen" charset="utf-8" />
+ <script type="text/javascript" charset="utf-8">
+ var STATIC_URL = '{{STATIC_URL}}';
+ </script>
<script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/jquery.blockui.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>