cloudsuite: Order the loading of the JS pieces.
This commit is contained in:
parent
0a3662e0bf
commit
52aa2941cd
@ -197,12 +197,15 @@ var documentsMain = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
showEditor : function(title){
|
showEditor : function(title){
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/jquery.min');
|
OC.addScript('documents', '3rdparty/cloudsuite/jquery.min').done(function() {
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/w2ui.min');
|
OC.addScript('documents', '3rdparty/cloudsuite/w2ui.min').done(function() {
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/select2.min');
|
OC.addScript('documents', '3rdparty/cloudsuite/select2.min').done(function() {
|
||||||
|
|
||||||
// start the loleaflet
|
|
||||||
OC.addScript('documents', '3rdparty/cloudsuite/leaflet-src').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';
|
||||||
|
|
||||||
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',
|
||||||
@ -225,12 +228,12 @@ var documentsMain = {
|
|||||||
|
|
||||||
documentsMain.overlay.documentOverlay('hide');
|
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){
|
if (documentsMain.isGuest){
|
||||||
// !Login page mess wih WebODF toolbars
|
// !Login page mess wih WebODF toolbars
|
||||||
|
Loading…
x
Reference in New Issue
Block a user