X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ae9eecda5561b99cd51b1f3709e3cdc803ba47eb..f18572dbe8b4b604a63cb58170f7755ec9793842:/platforma/static/js/main.js?ds=sidebyside diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 41afe21d..c88f2930 100644 --- a/platforma/static/js/main.js +++ b/platforma/static/js/main.js @@ -1,3 +1,9 @@ +if (!window.console) { + window.console = { + log: function() {} + } +} + // Teraz nieużywane function highlight(colour) { var range, sel; @@ -88,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(); }); @@ -355,8 +361,8 @@ $(function() { CodeMirror.fromTextArea('id_text', { parserfile: 'parsexml.js', - path: "/static/js/lib/codemirror/", - stylesheet: "/static/css/xmlcolors.css", + path: STATIC_URL + "js/lib/codemirror/", + stylesheet: STATIC_URL + "css/xmlcolors.css", parserConfig: { useHTMLKludges: false },