Parse the link to AssertURL trought he generateURL
This is to make sure that index.php etc is properly added. Else this might fail on some setups. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Родитель
a690d98e33
Коммит
4a30187fc1
|
@ -527,7 +527,7 @@ var documentsMain = {
|
||||||
var filename = path.substring(path.lastIndexOf('/') + 1);
|
var filename = path.substring(path.lastIndexOf('/') + 1);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: OC.linkTo('richdocuments', 'assets'),
|
url: OC.generateUrl('apps/richdocuments/assets'),
|
||||||
data: {
|
data: {
|
||||||
path: path
|
path: path
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче