From 58d4aaf62aad7d19d2fb26176afd083c8f75f82a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 21 Oct 2010 15:03:21 +0200 Subject: [PATCH] fix rev check --- redakcja/static/js/wiki/wikiapi.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } -- 2.20.1