[Pkg-javascript-commits] [leaflet] 168/301: Refocus on the map when an input is clicked on the layers dialog. fixes #2148

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:49 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 254e6fe6b9a6350cf2ee50ca8f6465bc433ac96e
Author: jacobtoye <jacob.toye at gmail.com>
Date:   Mon Nov 4 10:46:51 2013 +1300

    Refocus on the map when an input is clicked on the layers dialog. fixes #2148
---
 src/control/Control.Layers.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/control/Control.Layers.js b/src/control/Control.Layers.js
index c0bcf8e..4c12ad4 100644
--- a/src/control/Control.Layers.js
+++ b/src/control/Control.Layers.js
@@ -230,6 +230,8 @@ L.Control.Layers = L.Control.extend({
 		}
 
 		this._handlingClick = false;
+
+		this._refocusOnMap();
 	},
 
 	_expand: function () {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list