Fix viewer for subdirectories

This commit is contained in:
Victor Dubiniuk 2014-01-30 22:58:02 +03:00
parent 9abf27278a
commit 16f5420fef

View File

@ -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');
}