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