diff --git a/loleaflet/reference.html b/loleaflet/reference.html index 3d9a2fa80..647485d60 100644 --- a/loleaflet/reference.html +++ b/loleaflet/reference.html @@ -2668,6 +2668,15 @@ The id property of ErrorEvent can have the following values: String Fired when all empty tiles have been loaded (fired several times). + + 'initializationcomplete' + String + Fired when everything that is needed for operating on the + document is ready: this._docLayer is defined, + statusindicatorfinish was received, .uno:StyleApply was + received, .uno:CharFontName was received, and + updatepermission was received. +

ToolbarCommandValues

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index a887747e5..79510cd48 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -81,7 +81,7 @@ L.Map = L.Evented.extend({ // is just a bunch of images, hence the context menu is useless (tdf#94599) this.on('contextmenu', function() {}); - // When all these conditions are met, fire statusindicator:initializationComplete + // When all these conditions are met, fire statusindicator:initializationcomplete this.initConditions = { 'docLayer': false, 'statusindicatorfinish': false, @@ -513,7 +513,7 @@ L.Map = L.Evented.extend({ return; } } - this.fire('statusindicator', {statusType: 'initializationComplete'}); + this.fire('statusindicator', {statusType: 'initializationcomplete'}); this.initComplete = true; },