X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1024e7820ecb22cde464da17ae22b161adf75c3b..c24bf5fa92daf6b6f2b2d2c31113e387b5025841:/redakcja/static/js/wiki/xslt.js?ds=sidebyside diff --git a/redakcja/static/js/wiki/xslt.js b/redakcja/static/js/wiki/xslt.js index 791cf1a3..a0d0d4bc 100644 --- a/redakcja/static/js/wiki/xslt.js +++ b/redakcja/static/js/wiki/xslt.js @@ -58,7 +58,6 @@ function withThemes(code_block, onError) } - function xml2html(options) { withStylesheets(function() { var xml = options.xml.replace(/\/(\s+)/g, '
$1'); @@ -80,7 +79,10 @@ function xml2html(options) { } if (error.length > 0 && options.error) { - options.error(error.text()); + source = $('sourcetext', doc); + source_text = source.text(); + source.text(''); + options.error(error.text(), source_text); } else { options.success(doc.firstChild);