X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/96bc5f73483f3e907eebd60df638a9de0a9124f3..a2ddf506a8d76719f6e8a79e784b3f297128656e:/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";