X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0e5e4a0d816add3c0c13559fbed4f79eb295baf8..b23f2eb2dba1c6e2c49f45362197b51eee60ac7c:/platforma/static/js/app.js?ds=sidebyside 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";