[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src

Mihai Varga mihai.varga at collabora.com
Thu Aug 6 08:07:14 PDT 2015


 loleaflet/dist/leaflet.css          |    5 +----
 loleaflet/src/control/Permission.js |    7 -------
 2 files changed, 1 insertion(+), 11 deletions(-)

New commits:
commit cd598cd1060d0f891a044858f517f19fa5e9e34b
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Thu Aug 6 18:06:29 2015 +0300

    loleaflet: always use text cursor except when dragging

diff --git a/loleaflet/dist/leaflet.css b/loleaflet/dist/leaflet.css
index da34f0c..2c8beca 100644
--- a/loleaflet/dist/leaflet.css
+++ b/loleaflet/dist/leaflet.css
@@ -180,7 +180,7 @@
 	cursor: pointer;
 	}
 .leaflet-container {
-	cursor: pointer;
+	cursor: text;
 	}
 .leaflet-crosshair,
 .leaflet-crosshair .leaflet-interactive {
@@ -196,9 +196,6 @@
 	cursor: -webkit-grabbing;
 	cursor:    -moz-grabbing;
 	}
-.leaflet-editmode {
-    cursor: text;
-    }
 
 /* visual tweaks */
 
diff --git a/loleaflet/src/control/Permission.js b/loleaflet/src/control/Permission.js
index 9950612..8d80993 100644
--- a/loleaflet/src/control/Permission.js
+++ b/loleaflet/src/control/Permission.js
@@ -4,10 +4,8 @@
 L.Map.include({
 	setPermission: function (perm) {
 		this._docLayer._permission = perm;
-		var className = 'leaflet-editmode';
 		if (perm === 'edit') {
 			this.dragging.disable();
-			L.DomUtil.addClass(this._container, className);
 		}
 		else if (perm === 'view' || perm === 'readonly') {
 			this.dragging.enable();
@@ -15,7 +13,6 @@ L.Map.include({
 			this._docLayer._onUpdateCursor();
 			this._docLayer._clearSelections();
 			this._docLayer._onUpdateTextSelection();
-			L.DomUtil.removeClass(this._container, className);
 		}
 		this.fire('updatepermission', {perm : perm});
 	},
@@ -24,17 +21,13 @@ L.Map.include({
 		if (this._docLayer._permission === 'edit') {
 			return;
 		}
-		var className = 'leaflet-editmode';
 		this.dragging.disable();
-		L.DomUtil.addClass(this._container, className);
 	},
 
 	disableSelection: function () {
 		if (this._docLayer._permission === 'edit') {
 			return;
 		}
-		var className = 'leaflet-editmode';
 		this.dragging.enable();
-		L.DomUtil.removeClass(this._container, className);
 	}
 });


More information about the Libreoffice-commits mailing list