[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Thu May 28 07:44:13 PDT 2015
loleaflet/dist/leaflet.css | 4 +++-
loleaflet/src/control/Control.EditView.js | 3 +++
2 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 1d34f8f0a8d5190277b0468e4fa3b22ad4817b29
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Thu May 28 17:43:53 2015 +0300
Set pointer cursor in viewmode
diff --git a/loleaflet/dist/leaflet.css b/loleaflet/dist/leaflet.css
index cd63ccd..8aa8aed 100644
--- a/loleaflet/dist/leaflet.css
+++ b/loleaflet/dist/leaflet.css
@@ -198,7 +198,9 @@
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
}
-
+.leaflet-viewmode {
+ cursor: pointer;
+ }
/* visual tweaks */
diff --git a/loleaflet/src/control/Control.EditView.js b/loleaflet/src/control/Control.EditView.js
index 248c341..2baf269 100644
--- a/loleaflet/src/control/Control.EditView.js
+++ b/loleaflet/src/control/Control.EditView.js
@@ -19,11 +19,14 @@ L.Control.EditViewSwitch = L.Control.extend({
},
_onChange: function() {
+ var className = 'leaflet-viewmode';
if (this._checkBox.checked) {
this._map.fire('viewmode');
+ L.DomUtil.addClass(this._map._container, className);
}
else {
this._map.fire('editmode');
+ L.DomUtil.removeClass(this._map._container, className);
}
}
});
More information about the Libreoffice-commits
mailing list