Fix viewer for subdirectories
This commit is contained in:
parent
9abf27278a
commit
16f5420fef
@ -54,7 +54,7 @@ var odfViewer = {
|
|||||||
var location = filename;
|
var location = filename;
|
||||||
} else {
|
} else {
|
||||||
//Public page, files app, etc
|
//Public page, files app, etc
|
||||||
var location = OC.filePath('documents', 'ajax', 'download.php') + '?path=' + $('#dir').val() + encodeURIComponent(filename);
|
var location = OC.filePath('documents', 'ajax', 'download.php') + '?path=' + $('#dir').val() + '/' + encodeURIComponent(filename);
|
||||||
OC.addStyle('documents', '3rdparty/webodf/editor');
|
OC.addStyle('documents', '3rdparty/webodf/editor');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user