diff --git a/js/viewer/viewer.js b/js/viewer/viewer.js index 472f71f6..a836dfe7 100644 --- a/js/viewer/viewer.js +++ b/js/viewer/viewer.js @@ -57,6 +57,26 @@ var odfViewer = { }, onView: function(filename, context) { + var attachTo = odfViewer.isDocuments ? '#documents-content' : '#controls'; + + FileList.setViewerMode(true); + + // TODO replace file_path = documentsMain.url + var viewer = window.location.protocol + '//' + window.location.host + '/cloudsuite/cloudsuite.html?' + + 'file_path=' + context.dir + '/' + filename + + '&host=' + 'ws://' + window.location.hostname + ':9980' + + '&edit=' + 'false' + + '×tamp=' + ''; + + var frame = '