cloudsuite: Document gets visible now (though quite distorted).

pull/1/head
Jan Holesovsky 9 years ago
parent a476af9126
commit 0a3662e0bf

@ -222,6 +222,8 @@ var documentsMain = {
map.addControl(L.control.tabs()); map.addControl(L.control.tabs());
OC.addScript('documents', '3rdparty/cloudsuite/cloudsuite.js'); OC.addScript('documents', '3rdparty/cloudsuite/cloudsuite.js');
documentsMain.overlay.documentOverlay('hide');
}); });
OC.addScript('documents', '3rdparty/cloudsuite/leaflet.draw'); OC.addScript('documents', '3rdparty/cloudsuite/leaflet.draw');
@ -385,7 +387,7 @@ var documentsMain = {
; ;
documentsMain.canShare = !documentsMain.isGuest documentsMain.canShare = !documentsMain.isGuest
&& typeof OC.Share !== 'undefined' && response.permissions & OC.PERMISSION_SHARE; && 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 // fade out file list and show WebODF canvas
$('#content-wrapper').fadeOut('fast').promise().done(function() { $('#content-wrapper').fadeOut('fast').promise().done(function() {
@ -397,10 +399,11 @@ var documentsMain = {
$('#odf-close').text(t('documents', 'Save') ); $('#odf-close').text(t('documents', 'Save') );
$('#odf-close').removeClass('icon-view-close'); $('#odf-close').removeClass('icon-view-close');
} }
var serverFactory = new ServerFactory(); //var serverFactory = new ServerFactory();
documentsMain.esId = response.es_id; documentsMain.esId = response.es_id;
documentsMain.memberId = response.member_id; documentsMain.memberId = response.member_id;
/*
// TODO: set webodf translation system, by passing a proper function translate(!string):!string in "runtime.setTranslator(translate);" // TODO: set webodf translation system, by passing a proper function translate(!string):!string in "runtime.setTranslator(translate);"
documentsMain.webodfServerInstance = serverFactory.createServer({ documentsMain.webodfServerInstance = serverFactory.createServer({
url : pollUrl, url : pollUrl,
@ -431,8 +434,9 @@ var documentsMain = {
documentsMain.overlay.documentOverlay('hide'); documentsMain.overlay.documentOverlay('hide');
parent.location.hash = response.file_id; parent.location.hash = response.file_id;
}); });
*/
}); });
}); /*});*/
}, },

Loading…
Cancel
Save