X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/507b2d4bf2ddee7fd083c72500ca04f5de71331e..1024e7820ecb22cde464da17ae22b161adf75c3b:/redakcja/static/js/wiki/view_editor_wysiwyg.js diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index 19869847..ad48a21c 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -487,12 +487,7 @@ _finalize(success); }, error: function(text){ - /* only basic error message */ - var errorArray = text.split("\n"); - if (errorArray.length >= 3) { - text = errorArray[2].split(":")[0]; - } - $('#html-view').html('

Wystąpił błąd: '+ text + '

'); + $('#html-view').html('

Wystąpił błąd:

'+text+'
'); _finalize(failure); } });