Fix viewer for subdirectories

pull/1/head
Victor Dubiniuk 10 years ago
parent 9abf27278a
commit 16f5420fef

@ -54,7 +54,7 @@ var odfViewer = {
var location = filename;
} else {
//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');
}

Loading…
Cancel
Save