From 38f9b8152e17e34c809db0a25d8a2aff4cfbcd73 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Wed, 28 Oct 2015 21:13:47 -0400 Subject: [PATCH] cloudsuite: when click a document in FileList view, attach iframe TODO replace file_path = documentsMain.url --- js/viewer/viewer.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 = '