[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-0' - loleaflet/src

Pranav Kant pranavk at collabora.co.uk
Mon Dec 19 15:58:17 UTC 2016


 loleaflet/src/map/Map.js |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit dd7f50dcdad023a575ec46ce42521a0d5aec406a
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Dec 15 13:42:45 2016 +0530

    Clicking on content layer now also activates the map
    
    Change-Id: Idd9343ab58e83ee1a710e82c649f2876c8b225bd
    (cherry picked from commit 1b690898f90643407d39d5e65f280764a0b0319d)
    Reviewed-on: https://gerrit.libreoffice.org/32198
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 6a5972c..6c2e504 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -799,10 +799,7 @@ L.Map = L.Evented.extend({
 				vex: options
 			});
 
-			options.$vexOverlay.bind('click.vex', function(e) {
-				if (e.target !== this) {
-					return 0;
-				}
+			options.$vex.bind('click.vex', function(e) {
 				return map._activate();
 			});
 			options.$vex.append(options.$vexOverlay);


More information about the Libreoffice-commits mailing list