[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Wed Apr 27 19:13:30 UTC 2016
loleaflet/src/map/Map.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 6c50fa323efb4e239e5b4f653164ac19ca107a81
Author: Henry Castro <hcastro at collabora.com>
Date: Wed Apr 27 15:14:11 2016 -0400
loleaflet: progress bar: use socket state
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index a177d79..c90035e 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -797,7 +797,8 @@ L.Map = L.Evented.extend({
_onUpdateProgress: function (e) {
if (e.statusType === 'start') {
- if (this._docLayer) {
+ if (this._socket.readyState === 1) {
+ // auto-save
this.showBusy('Saving...', true);
}
else {
More information about the Libreoffice-commits
mailing list