fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#1508: don't choke on comments before root
[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
d8ade93
..
5786f15
100644
(file)
--- a/
redakcja/static/js/wiki/wikiapi.js
+++ b/
redakcja/static/js/wiki/wikiapi.js
@@
-18,40
+18,40
@@
var base_path = "/documents";
if (vname == "ajax_document_text") {
var base_path = "/documents";
if (vname == "ajax_document_text") {
- var path = "/text/" + arguments[1];
+ var path = "/text/" + arguments[1]
+ '/'
;
if (arguments[2] !== undefined)
if (arguments[2] !== undefined)
- path +=
"/" + arguments[2]
;
+ path +=
arguments[2] + '/'
;
return base_path + path;
}
if (vname == "ajax_document_revert") {
return base_path + path;
}
if (vname == "ajax_document_revert") {
- return base_path + "/revert/" + arguments[1];
+ return base_path + "/revert/" + arguments[1]
+ '/'
;
}
if (vname == "ajax_document_history") {
}
if (vname == "ajax_document_history") {
- return base_path + "/history/" + arguments[1];
+ return base_path + "/history/" + arguments[1]
+ '/'
;
}
if (vname == "ajax_document_gallery") {
}
if (vname == "ajax_document_gallery") {
- return base_path + "/gallery/" + arguments[1];
+ return base_path + "/gallery/" + arguments[1]
+ '/'
;
}
if (vname == "ajax_document_diff")
}
if (vname == "ajax_document_diff")
- return base_path + "/diff/" + arguments[1];
+ return base_path + "/diff/" + arguments[1]
+ '/'
;
if (vname == "ajax_document_rev")
if (vname == "ajax_document_rev")
- return base_path + "/rev/" + arguments[1];
+ return base_path + "/rev/" + arguments[1]
+ '/'
;
if (vname == "ajax_document_addtag")
if (vname == "ajax_document_addtag")
- return base_path + "/tags/" + arguments[1];
+ return base_path + "/tags/" + arguments[1]
+ '/'
;
if (vname == "ajax_publish")
if (vname == "ajax_publish")
- return base_path + "/publish/" + arguments[1];
+ return base_path + "/publish/" + arguments[1]
+ '/'
;
console.log("Couldn't reverse match:", vname);
return "/404.html";
console.log("Couldn't reverse match:", vname);
return "/404.html";