X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a8045c91f2dc8ae51ca5140b54f4419a6f0c0087..45c29de17de732e6d10abb79f77970bb3a24324b:/redakcja/static/js/wiki/wikiapi.js?ds=inline diff --git a/redakcja/static/js/wiki/wikiapi.js b/redakcja/static/js/wiki/wikiapi.js index a518410e..97d18862 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 == '' && params.error) - params.error(); + if (data == '') { + if (params.error) + params.error(); + } else if (data != self.revision) params.outdated(); }