cloudsuite: Order the loading of the JS pieces.
This commit is contained in:
parent
0a3662e0bf
commit
52aa2941cd
@ -197,41 +197,44 @@ var documentsMain = {
|
||||
},
|
||||
|
||||
showEditor : function(title){
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/jquery.min');
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/w2ui.min');
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/select2.min');
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/jquery.min').done(function() {
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/w2ui.min').done(function() {
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/select2.min').done(function() {
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/leaflet-src').done(function() {
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/leaflet.draw').done(function() {
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/jquery.mCustomScrollbar').done(function() {
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/vex.combined.min').done(function() {
|
||||
//vex.defaultOptions.className = 'vex-theme-plain';
|
||||
|
||||
// start the loleaflet
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/leaflet-src').done(function() {
|
||||
var map = L.map('map', {
|
||||
server: 'ws://localhost:9980',
|
||||
doc: 'file:///local/home/kendy/Downloads/ODT-test.odt',
|
||||
edit: true,
|
||||
timestamp: '',
|
||||
/*server: host,
|
||||
doc: filePath,
|
||||
edit: edit,
|
||||
timestamp: timestamp,*/
|
||||
readOnly: false
|
||||
var map = L.map('map', {
|
||||
server: 'ws://localhost:9980',
|
||||
doc: 'file:///local/home/kendy/Downloads/ODT-test.odt',
|
||||
edit: true,
|
||||
timestamp: '',
|
||||
/*server: host,
|
||||
doc: filePath,
|
||||
edit: edit,
|
||||
timestamp: timestamp,*/
|
||||
readOnly: false
|
||||
});
|
||||
|
||||
////// Controls /////
|
||||
map.addControl(L.control.scroll());
|
||||
map.addControl(L.control.dialog());
|
||||
map.addControl(L.control.partsPreview());
|
||||
map.addControl(L.control.tabs());
|
||||
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/cloudsuite.js');
|
||||
|
||||
documentsMain.overlay.documentOverlay('hide');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
////// Controls /////
|
||||
map.addControl(L.control.scroll());
|
||||
map.addControl(L.control.dialog());
|
||||
map.addControl(L.control.partsPreview());
|
||||
map.addControl(L.control.tabs());
|
||||
|
||||
OC.addScript('documents', '3rdparty/cloudsuite/cloudsuite.js');
|
||||
|
||||
documentsMain.overlay.documentOverlay('hide');
|
||||
});
|
||||
|
||||
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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user