X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3314477c16f2492b2a6b95b17922e5b6f2b087ca..45c29de17de732e6d10abb79f77970bb3a24324b:/redakcja/static/js/wiki/wikiapi.js?ds=sidebyside 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(); } }); };