total mess: some random experiments with images and lqc's dvcs
[redakcja.git] / redakcja / static / js / wiki / wikiapi.js
index a518410..97d1886 100644 (file)
             url: reverse("ajax_document_rev", self.id),
             dataType: 'text',
             success: function(data) {
             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();
             }
                 else if (data != self.revision)
                     params.outdated();
             }