fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#959: going through whole repository was a huge performance hog
[redakcja.git]
/
redakcja
/
static
/
js
/
wiki
/
wikiapi.js
diff --git
a/redakcja/static/js/wiki/wikiapi.js
b/redakcja/static/js/wiki/wikiapi.js
index
bce1f89
..
97d1886
100644
(file)
--- a/
redakcja/static/js/wiki/wikiapi.js
+++ b/
redakcja/static/js/wiki/wikiapi.js
@@
-163,8
+163,12
@@
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 != self.revision)
- params.error();
+ if (data == '') {
+ if (params.error)
+ params.error();
+ }
+ else if (data != self.revision)
+ params.outdated();
}
});
};
}
});
};