From 0a3662e0bfd72c2af265d453c3442c3b811ddc79 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 26 Oct 2015 12:16:44 +0100 Subject: [PATCH] cloudsuite: Document gets visible now (though quite distorted). --- js/documents.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/documents.js b/js/documents.js index 832f1ded..edf89f65 100644 --- a/js/documents.js +++ b/js/documents.js @@ -222,6 +222,8 @@ var documentsMain = { map.addControl(L.control.tabs()); OC.addScript('documents', '3rdparty/cloudsuite/cloudsuite.js'); + + documentsMain.overlay.documentOverlay('hide'); }); OC.addScript('documents', '3rdparty/cloudsuite/leaflet.draw'); @@ -385,7 +387,7 @@ var documentsMain = { ; documentsMain.canShare = !documentsMain.isGuest && typeof OC.Share !== 'undefined' && response.permissions & OC.PERMISSION_SHARE; - require({ }, ["owncloud/ServerFactory", "webodf/editor/Editor"], function (ServerFactory, Editor) { + /*require({ }, ["owncloud/ServerFactory", "webodf/editor/Editor"], function (ServerFactory, Editor) {*/ // fade out file list and show WebODF canvas $('#content-wrapper').fadeOut('fast').promise().done(function() { @@ -397,10 +399,11 @@ var documentsMain = { $('#odf-close').text(t('documents', 'Save') ); $('#odf-close').removeClass('icon-view-close'); } - var serverFactory = new ServerFactory(); + //var serverFactory = new ServerFactory(); documentsMain.esId = response.es_id; documentsMain.memberId = response.member_id; + /* // TODO: set webodf translation system, by passing a proper function translate(!string):!string in "runtime.setTranslator(translate);" documentsMain.webodfServerInstance = serverFactory.createServer({ url : pollUrl, @@ -431,8 +434,9 @@ var documentsMain = { documentsMain.overlay.documentOverlay('hide'); parent.location.hash = response.file_id; }); + */ }); - }); + /*});*/ },