X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0e5e4a0d816add3c0c13559fbed4f79eb295baf8..05124c8c30a67c005eac475a262c6e3c61473590:/platforma/static/js/app.js diff --git a/platforma/static/js/app.js b/platforma/static/js/app.js index ec19ee3c..e870a387 100644 --- a/platforma/static/js/app.js +++ b/platforma/static/js/app.js @@ -198,6 +198,10 @@ function parseXHRError(response) level = "warning"; } + else if(json.reason == 'xml-non-valid') { + message = json.message; + level = "warning"; + } else { message = json.message || json.reason || "Nieznany błąd :(("; level = "error";