From: Radek Czajka Date: Thu, 21 Oct 2010 13:03:21 +0000 (+0200) Subject: fix rev check X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/58d4aaf62aad7d19d2fb26176afd083c8f75f82a fix rev check --- 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(); }