X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3314477c16f2492b2a6b95b17922e5b6f2b087ca..ab76a5c2c90d386b3d5f40aee3d784b02cb92434:/redakcja/static/js/wiki/wikiapi.js diff --git a/redakcja/static/js/wiki/wikiapi.js b/redakcja/static/js/wiki/wikiapi.js index bce1f897..97d18862 100644 --- a/redakcja/static/js/wiki/wikiapi.js +++ b/redakcja/static/js/wiki/wikiapi.js @@ -163,8 +163,12 @@ url: reverse("ajax_document_rev", self.id), dataType: 'text', success: function(data) { - if (data != self.revision) - params.error(); + if (data == '') { + if (params.error) + params.error(); + } + else if (data != self.revision) + params.outdated(); } }); };