[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-1-0' - loleaflet/src
Henry Castro
hcastro at collabora.com
Tue Oct 4 00:16:47 UTC 2016
loleaflet/src/control/Toolbar.js | 4 ++++
loleaflet/src/map/Map.js | 1 +
2 files changed, 5 insertions(+)
New commits:
commit 3f832fdc1beaf87ebe1d509d047e0c9fcbd1edb6
Author: Henry Castro <hcastro at collabora.com>
Date: Mon Oct 3 20:16:00 2016 -0400
loleaflet: initialize fatal flag
diff --git a/loleaflet/src/control/Toolbar.js b/loleaflet/src/control/Toolbar.js
index 54a1d95..19eeaa9 100644
--- a/loleaflet/src/control/Toolbar.js
+++ b/loleaflet/src/control/Toolbar.js
@@ -48,6 +48,10 @@ L.Map.include({
},
downloadAs: function (name, format, options, id) {
+ if (this._fatal) {
+ return;
+ }
+
if (format === undefined || format === null) {
format = '';
}
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 3bcc9a2..df45177 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -65,6 +65,7 @@ L.Map = L.Evented.extend({
this._sizeChanged = true;
this._bDisableKeyboard = false;
this._active = true;
+ this._fatal = false;
this._enabled = true;
vex.dialogID = -1;
More information about the Libreoffice-commits
mailing list