cloudsuite: Actually start the loleaflet.
[Still webodf appears on too many places, so loleaflet does not get visible yet.]
This commit is contained in:
parent
7c96ce83ff
commit
a476af9126
@ -164,6 +164,14 @@ var documentsMain = {
|
|||||||
' <div id="toolbar-down"></div>' +
|
' <div id="toolbar-down"></div>' +
|
||||||
' <input id="insertgraphic" type="file" onchange="onInsertFile()" style="position: fixed; top: -100em">' +
|
' <input id="insertgraphic" type="file" onchange="onInsertFile()" style="position: fixed; top: -100em">' +
|
||||||
' <div id="document-container"><div id="map"></div></div>' +
|
' <div id="document-container"><div id="map"></div></div>' +
|
||||||
|
' <div id="collaboration">' +
|
||||||
|
' <div id="collabContainer">' +
|
||||||
|
' <div id="members">' +
|
||||||
|
' <div id="inviteButton"></div>' +
|
||||||
|
' <div id="memberList"></div>' +
|
||||||
|
' </div>' +
|
||||||
|
' </div>' +
|
||||||
|
' </div>' +
|
||||||
'</div>',
|
'</div>',
|
||||||
/*'<div id="mainContainer" class="claro">' +
|
/*'<div id="mainContainer" class="claro">' +
|
||||||
' <div id="editor" class="webodfeditor-editor">' +
|
' <div id="editor" class="webodfeditor-editor">' +
|
||||||
@ -192,24 +200,9 @@ var documentsMain = {
|
|||||||
OC.addScript('documents', '3rdparty/cloudsuite/jquery.min');
|
OC.addScript('documents', '3rdparty/cloudsuite/jquery.min');
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/w2ui.min');
|
OC.addScript('documents', '3rdparty/cloudsuite/w2ui.min');
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/select2.min');
|
OC.addScript('documents', '3rdparty/cloudsuite/select2.min');
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/leaflet-src');
|
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/leaflet.draw');
|
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/jquery.mCustomScrollbar');
|
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/vex.combined.min');
|
|
||||||
|
|
||||||
//vex.defaultOptions.className = 'vex-theme-plain';
|
|
||||||
|
|
||||||
if (documentsMain.isGuest){
|
|
||||||
// !Login page mess wih WebODF toolbars
|
|
||||||
$(document.body).attr('id', 'body-user');
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document.body).addClass("claro");
|
|
||||||
$(document.body).prepend(documentsMain.UI.container);
|
|
||||||
// in case we are on the public sharing page we shall display the odf into the preview tag
|
|
||||||
//$('#preview').html(container);
|
|
||||||
$('title').text(title + ' - ' + documentsMain.UI.mainTitle);
|
|
||||||
|
|
||||||
|
// start the loleaflet
|
||||||
|
OC.addScript('documents', '3rdparty/cloudsuite/leaflet-src').done(function() {
|
||||||
var map = L.map('map', {
|
var map = L.map('map', {
|
||||||
server: 'ws://localhost:9980',
|
server: 'ws://localhost:9980',
|
||||||
doc: 'file:///local/home/kendy/Downloads/ODT-test.odt',
|
doc: 'file:///local/home/kendy/Downloads/ODT-test.odt',
|
||||||
@ -229,6 +222,24 @@ 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');
|
||||||
|
});
|
||||||
|
|
||||||
|
OC.addScript('documents', '3rdparty/cloudsuite/leaflet.draw');
|
||||||
|
OC.addScript('documents', '3rdparty/cloudsuite/jquery.mCustomScrollbar');
|
||||||
|
OC.addScript('documents', '3rdparty/cloudsuite/vex.combined.min');
|
||||||
|
|
||||||
|
//vex.defaultOptions.className = 'vex-theme-plain';
|
||||||
|
|
||||||
|
if (documentsMain.isGuest){
|
||||||
|
// !Login page mess wih WebODF toolbars
|
||||||
|
$(document.body).attr('id', 'body-user');
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document.body).addClass("claro");
|
||||||
|
$(document.body).prepend(documentsMain.UI.container);
|
||||||
|
// in case we are on the public sharing page we shall display the odf into the preview tag
|
||||||
|
//$('#preview').html(container);
|
||||||
|
$('title').text(title + ' - ' + documentsMain.UI.mainTitle);
|
||||||
},
|
},
|
||||||
|
|
||||||
hideEditor : function(){
|
hideEditor : function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user