#965: "all" option for annotations index
[redakcja.git] / redakcja / static / js / wiki / wikiapi.js
index bce1f89..97d1886 100644 (file)
             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();
             }
         });
     };