X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/df341bdd09208d2b0f84060454cc0000df19deba..ec7eb5869c48d69091579e928046b52ee7ae96ae:/src/redakcja/static/js/wiki/wikiapi.js?ds=inline diff --git a/src/redakcja/static/js/wiki/wikiapi.js b/src/redakcja/static/js/wiki/wikiapi.js index 28450ce0..2f1bceb5 100644 --- a/src/redakcja/static/js/wiki/wikiapi.js +++ b/src/redakcja/static/js/wiki/wikiapi.js @@ -440,6 +440,10 @@ return text.length; } + /* Temporary workaround for relative images. */ + WikiDocument.prototype.getBase = function() { + return '/media/dynamic/images/' + this.galleryLink + '/'; + }; $.wikiapi.WikiDocument = WikiDocument; })(jQuery);